forked from mozilla/treeherder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruntests.sh
executable file
·30 lines (21 loc) · 851 Bytes
/
runtests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
# Make non-zero exit codes & other errors fatal.
set -euo pipefail
echo "Running pip check"
pip check
echo "Checking CELERY_TASK_QUEUES matches Procfile"
python -bb ./lints/queuelint.py
echo "Running flake8"
flake8 --show-source || { echo "flake8 errors found!"; exit 1; }
echo "Running isort"
isort --check-only --diff --quiet \
|| { echo "isort errors found! Run 'isort' with no options to fix."; exit 1; }
echo "Running shellcheck"
git grep -El '^#!/.+\b(bash|sh)\b' | xargs shellcheck
echo "Running test docs generation"
mkdocs build
echo "Running Django system checks"
# See .travis.yml for explanation of the environment variable overriding.
SITE_URL="https://treeherder.dev" TREEHERDER_DEBUG="False" python -bb ./manage.py check --deploy --fail-level WARNING
echo "Running Python tests"
python -bb -m pytest tests/