mirror of
https://github.com/engineer-man/piston.git
synced 2025-09-20 19:00:04 +02:00
Add Crystal
This commit is contained in:
parent
b0c462d5ee
commit
10d85553db
7 changed files with 26 additions and 0 deletions
|
@ -57,6 +57,9 @@ case "$lang" in
|
|||
"cpp" | "c++")
|
||||
bin=cpp
|
||||
;;
|
||||
"crystal" | "cr")
|
||||
bin=crystal
|
||||
;;
|
||||
"csharp" | "cs" | "c#")
|
||||
bin=csharp
|
||||
;;
|
||||
|
|
3
lxc/executors/crystal
Normal file
3
lxc/executors/crystal
Normal file
|
@ -0,0 +1,3 @@
|
|||
cd /tmp/$2
|
||||
timeout -s KILL 10 crystal build code.code
|
||||
runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 ./code"
|
|
@ -7,6 +7,8 @@ echo 'testing c'
|
|||
../execute c test.c
|
||||
echo 'testing cpp'
|
||||
../execute cpp test.cpp
|
||||
echo 'testing crystal'
|
||||
../execute crystal test.cr
|
||||
echo 'testing cs'
|
||||
../execute cs test.cs
|
||||
echo 'testing deno ts'
|
||||
|
|
1
lxc/tests/test.cr
Normal file
1
lxc/tests/test.cr
Normal file
|
@ -0,0 +1 @@
|
|||
puts "good"
|
|
@ -21,6 +21,10 @@ echo 'cpp'
|
|||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "g++ -v"
|
||||
echo '---'
|
||||
|
||||
echo 'crystal'
|
||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "crystal -v"
|
||||
echo '---'
|
||||
|
||||
echo 'csharp'
|
||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "mcs --version"
|
||||
echo '---'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue