zulip/tools/test-all
Tim Abbott fbc30c2914 test-all: Add a call to run-mypy.
Using mypy to check the codebase is stable and useful enough that it's
worth including it in the default tests run locally.
2016-05-31 15:00:15 -07:00

28 lines
546 B
Bash
Executable File

#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"/..
function run {
echo '----'
echo "Running $@"
if ! "$@"; then
printf "\n\e[31;1mFAILED\e[0m $@\n"
exit 1
else
echo
fi
}
run ./tools/clean-repo
run ./tools/lint-all
run ./tools/test-migrations
run ./tools/test-js-with-node
run ./tools/run-mypy
run ./tools/test-backend
run ./tools/test-js-with-casper
# Not running management test since it takes 40s and thus is too slow to be worth it.
# run ./tools/test-management
printf '\n\e[32mAll OK!\e[0m\n'