mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 04:26:28 +02:00
merge and add clojure
This commit is contained in:
parent
fca3488743
commit
ed0a5c4f78
5 changed files with 33 additions and 0 deletions
4
lxc/executors/clojure
Normal file
4
lxc/executors/clojure
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /tmp/$1
|
||||
timeout -s KILL 3 xargs -a args.args -d '\n' clojure -M code.code < stdin.stdin
|
5
lxc/tests/clojure.clj
Normal file
5
lxc/tests/clojure.clj
Normal file
|
@ -0,0 +1,5 @@
|
|||
(ns clojure.examples.hello
|
||||
(:gen-class))
|
||||
(defn hello-world []
|
||||
(println "good"))
|
||||
(hello-world)
|
|
@ -21,6 +21,10 @@ echo 'cpp'
|
|||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "g++ --version"
|
||||
echo '---'
|
||||
|
||||
echo 'clojure'
|
||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "clojure -version"
|
||||
echo '---'
|
||||
|
||||
echo 'crystal'
|
||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "crystal -v"
|
||||
echo '---'
|
||||
|
@ -77,6 +81,10 @@ echo 'lisp'
|
|||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "sbcl --version"
|
||||
echo '---'
|
||||
|
||||
echo 'lolcode'
|
||||
echo '1.0.0'
|
||||
echo '---'
|
||||
|
||||
echo 'lua'
|
||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "lua -v"
|
||||
echo '---'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue