2016-01-12 13:08:43 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
2012-11-14 21:25:20 +01:00
|
|
|
|
|
|
|
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
|
2013-08-09 19:06:02 +02:00
|
|
|
run ./tools/lint-all
|
2013-08-09 17:29:31 +02:00
|
|
|
run ./tools/test-js-with-node
|
|
|
|
run ./tools/test-backend
|
2013-08-09 17:55:29 +02:00
|
|
|
run ./tools/test-js-with-casper
|
2015-11-10 06:56:08 +01:00
|
|
|
# Not running management test since it takes 40s and thus is too slow to be worth it.
|
|
|
|
# run ./tools/test-management
|
2012-11-14 21:25:20 +01:00
|
|
|
|
|
|
|
printf '\n\e[32mAll OK!\e[0m\n'
|