mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 20:46:26 +02:00
added deno
Fixes issue: https://github.com/engineer-man/piston/issues/18
This commit is contained in:
parent
3246ed6781
commit
084211cb46
7 changed files with 28 additions and 1 deletions
|
@ -87,6 +87,9 @@ case "$lang" in
|
|||
"node" | "js" | "javascript")
|
||||
bin=node
|
||||
;;
|
||||
"deno" | "denojs" | "denots")
|
||||
bin=deno
|
||||
;;
|
||||
"perl")
|
||||
bin=perl
|
||||
;;
|
||||
|
|
7
lxc/executors/deno
Normal file
7
lxc/executors/deno
Normal file
|
@ -0,0 +1,7 @@
|
|||
cd /tmp/$2
|
||||
|
||||
if [[ -z $(grep '[^[:space:]]' args.args) ]]; then
|
||||
runuser runner$1 -c "cd /tmp/$2 ; timeout -s KILL 3 deno code.code"
|
||||
else
|
||||
runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 deno code.code"
|
||||
fi
|
|
@ -47,3 +47,7 @@ echo 'testing python3'
|
|||
../execute python3 test3.py
|
||||
echo 'testing haskell'
|
||||
../execute haskell test.hs
|
||||
echo 'testing deno js'
|
||||
../execute deno testdeno.js
|
||||
echo 'testing deno ts'
|
||||
../execute deno testdeno.ts
|
||||
|
|
1
lxc/tests/testdeno.js
Normal file
1
lxc/tests/testdeno.js
Normal file
|
@ -0,0 +1 @@
|
|||
console.log('good')
|
1
lxc/tests/testdeno.ts
Normal file
1
lxc/tests/testdeno.ts
Normal file
|
@ -0,0 +1 @@
|
|||
console.log('good')
|
|
@ -69,3 +69,6 @@ echo '---'
|
|||
echo 'haskell'
|
||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "ghc --version"
|
||||
echo '---'
|
||||
echo 'deno'
|
||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "deno --version"
|
||||
echo '---'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue