Merge remote-tracking branch 'upstream/v3' into v3

This commit is contained in:
Dan Vargas 2021-03-15 20:48:23 -05:00
commit ed4591bb93
18 changed files with 122 additions and 4 deletions

View file

@ -123,7 +123,9 @@ jobs:
do
TEST_RUNTIME=$(awk -F. '{print $2}' <<< $(basename $tscript))
echo Running $tscript with runtime=$TEST_RUNTIME
docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/index.js run $TEST_RUNTIME $PKG_VERSION /pkg/$(basename $tscript) | grep OK
docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/index.js run $TEST_RUNTIME $PKG_VERSION /pkg/$(basename $tscript) > test_output
cat test_output
grep "OK" test_output
done
done

25
packages/elixir/1.11.3/build.sh vendored Executable file
View file

@ -0,0 +1,25 @@
#!/bin/bash
source ../../erlang/23.0.0/build.sh
export PATH=$PWD/bin:$PATH
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
curl -L "https://github.com/elixir-lang/elixir/archive/v1.11.3.tar.gz" -o elixir.tar.gz
tar xzf elixir.tar.gz --strip-components=1
rm elixir.tar.gz
./configure --prefix "$PREFIX"
make -j$(nproc)
cd ..
cp -r build/bin .
cp -r build/lib .
rm -rf build

4
packages/elixir/1.11.3/environment vendored Normal file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

6
packages/elixir/1.11.3/metadata.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"language": "elixir",
"version": "1.11.3",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["elixir", "exs"]
}

4
packages/elixir/1.11.3/run vendored Normal file
View file

@ -0,0 +1,4 @@
#!/bin/bash
# Put instructions to run the runtime
elixir "$@"

1
packages/elixir/1.11.3/test.exs vendored Normal file
View file

@ -0,0 +1 @@
IO.puts("OK")

21
packages/erlang/23.0.0/build.sh vendored Executable file
View file

@ -0,0 +1,21 @@
#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
curl "http://erlang.org/download/otp_src_23.0.tar.gz" -o erlang.tar.gz
tar xzf erlang.tar.gz --strip-components=1
rm erlang.tar.gz
export ERL_TOP=$(pwd)
./configure --prefix "$PREFIX"
make -j$(nproc)
make install -j$(nproc)
cd ..
rm -rf build

4
packages/erlang/23.0.0/environment vendored Normal file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

6
packages/erlang/23.0.0/metadata.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"language": "erlang",
"version": "23.0.0",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["erlang", "erl", "escript"]
}

4
packages/erlang/23.0.0/run vendored Normal file
View file

@ -0,0 +1,4 @@
#!/bin/bash
# Put instructions to run the runtime
escript "$@"

3
packages/erlang/23.0.0/test.erl vendored Normal file
View file

@ -0,0 +1,3 @@
main(_) ->
io:format("OK~n").

View file

@ -54,7 +54,7 @@ echo "# Put 'export' statements here for environment variables" >> environment
echo "export PATH=\$PWD/bin:\$PATH" >> environment
echo "# Put instructions to run the runtime" >> run
echo "$NAME-$VERSION \$*" >> run
echo "$NAME-$VERSION \"\$@\"" >> run
echo "# Put instructions to compile source code, remove this file if the language does not require this stage" >> compile

23
packages/osabie/1.0.1/build.sh vendored Executable file
View file

@ -0,0 +1,23 @@
#!/bin/bash
source ../../elixir/1.11.3/build.sh
export PATH=$PWD/bin:$PATH
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
git clone 'https://github.com/Adriandmen/05AB1E.git' .
mix local.hex --force
mix local.rebar --force
mix deps.get --force
MIX_ENV=prod mix escript.build --force
cd ..
cp -r build/* bin
rm -rf build

4
packages/osabie/1.0.1/environment vendored Normal file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

6
packages/osabie/1.0.1/metadata.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"language": "osabie",
"version": "1.0.1",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["osabie", "05AB1E", "usable"]
}

4
packages/osabie/1.0.1/run vendored Normal file
View file

@ -0,0 +1,4 @@
#!/bin/bash
# Put instructions to run the runtime
osabie "$@"

1
packages/osabie/1.0.1/test.osabie vendored Normal file
View file

@ -0,0 +1 @@
"OK

View file

@ -1,3 +1,3 @@
#!/bin/bash
ruby $*
ruby "$@"