mirror of https://github.com/zulip/zulip.git
Add a tool to run all the test suites
(imported from commit 073f3f0595669ce7c2cc9334e7318bc2856e1e8e)
This commit is contained in:
parent
2a619a0054
commit
08a43f2f5c
|
@ -0,0 +1,22 @@
|
|||
#!/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 'lint checkers' ./tools/check-all
|
||||
run 'web client tests' ./zephyr/tests/frontend/run
|
||||
run 'server tests' ./manage.py test zephyr --skip-generate
|
||||
|
||||
printf '\n\e[32mAll OK!\e[0m\n'
|
Loading…
Reference in New Issue