mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
When the backend is failing, the frontend often fails in much less clear ways (e.g. timing out), so it's generally more useful to run the backend tests first. (imported from commit 36ac862ad1dbb21e32c0f44ba135c3c29bbea2f5)
24 lines
431 B
Bash
Executable File
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 'server tests' ./tools/test-backend
|
|
run 'web client tests' ./zephyr/tests/frontend/run
|
|
|
|
printf '\n\e[32mAll OK!\e[0m\n'
|