fix deno, fix clojure version, lolcode dynamic version

This commit is contained in:
Brian Seymour 2021-03-12 14:12:25 -06:00
parent 66a602038b
commit 6ff766d90b
4 changed files with 6 additions and 2 deletions

View File

@ -22,6 +22,8 @@ const languages = require('../../config/languages.json');
versions[language] = /\d+/.exec(lines[1])?.[0];
} else if (language === 'emacs') {
versions[language] = /\d+\.\d+/.exec(lines[1])?.[0];
} else if (language === 'clojure') {
versions[language] = /\d+\.\d+\.\d+\.\d+/.exec(lines[1])?.[0];
} else {
versions[language] = /\d+\.\d+\.\d+/.exec(section)?.[0];
}

View File

@ -1,4 +1,5 @@
#!/bin/bash
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' NO_COLOR=true deno run code.code < stdin.stdin
export NO_COLOR=true
timeout -s KILL 3 xargs -a args.args -d '\n' deno run code.code < stdin.stdin

View File

@ -82,7 +82,7 @@ lxc-attach --clear-env -n piston -- /bin/bash -l -c "sbcl --version"
echo '---'
echo 'lolcode'
echo '1.0.0'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "lci --version"
echo '---'
echo 'lua'

View File

@ -260,6 +260,7 @@ Content-Type: application/json
`brainfuck`,
`c`,
`cpp`,
`clojure`,
`crystal`,
`csharp`,
`d`,