2012-11-14 21:25:20 +01:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
cd "$(dirname "$0")"/..
|
|
|
|
|
|
|
|
function run {
|
2013-08-09 17:29:31 +02:00
|
|
|
echo '----'
|
|
|
|
echo "Running $@"
|
2012-11-14 21:25:20 +01:00
|
|
|
if ! "$@"; then
|
2013-08-09 17:29:31 +02:00
|
|
|
printf "\n\e[31;1mFAILED\e[0m $@\n"
|
2012-11-14 21:25:20 +01:00
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
echo
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2013-08-09 17:29:31 +02:00
|
|
|
run ./tools/clean-repo
|
|
|
|
run ./tools/check-all
|
|
|
|
run ./tools/test-js-with-node
|
|
|
|
run ./tools/test-backend
|
2013-08-09 17:55:29 +02:00
|
|
|
run ./tools/test-js-with-casper
|
2012-11-14 21:25:20 +01:00
|
|
|
|
|
|
|
printf '\n\e[32mAll OK!\e[0m\n'
|