Skip to content

Instantly share code, notes, and snippets.

@lucaswerkmeister
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucaswerkmeister/10324086 to your computer and use it in GitHub Desktop.
Save lucaswerkmeister/10324086 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd /tmp
ceylon new hello-world --module-name=tmp --module-version=1.0.0 --ant=false --eclipse=false "ceylon.language#429"
cd "ceylon.language#429"
cat > source/tmp/run.ceylon << EOF
import ceylon.file { Visitor }
void f() {
object w extends Visitor() {}
}
void run() {
value fun = \`function f\`;
}
EOF
cat > source/tmp/module.ceylon << EOF
module tmp "1.0.0" {
import ceylon.file "1.0.0";
}
EOF
trap 'cd ..; rm -r ceylon.language#429' EXIT
ceylon compile tmp
# this will hang up, so let’s wait
ceylon run tmp &
sleep 10
if ps -p $! &> /dev/null; then
echo "Ceylon didn’t finish, killing"
kill $!
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment