Files
zulip/tools/test-all
Leo Franchi 59228f7458 Run clean-repo before tests in test-all
(imported from commit 49bd072f6f60a742ea9fb7f55c479b8eb8ceb8aa)
2013-03-22 16:22:49 -04:00

24 lines
431 B
Bash
Executable File

#!/bin/bash -e
cd "$(dirname "$0")"/..
function run {
desc="$1"
shift
echo "Running $desc"
if ! "$@"; then
printf "\n\e[31;1mFAILED\e[0m $desc\n"
exit 1
else
echo
fi
}
run 'clean repo' ./tools/clean-repo
run 'lint checkers' ./tools/check-all
run 'web client tests' ./zephyr/tests/frontend/run
run 'server tests' ./tools/test-backend
printf '\n\e[32mAll OK!\e[0m\n'