2013-03-12 00:01:17 +04:00
|
|
|
#!/bin/sh
|
2015-05-14 18:43:05 +03:00
|
|
|
|
2017-07-26 13:04:03 +03:00
|
|
|
echo "Running pip check"
|
|
|
|
pip check || { exit 1; }
|
|
|
|
|
2017-02-01 19:28:55 +03:00
|
|
|
echo "Checking CELERY_QUEUES matches Procfile"
|
2016-03-09 16:24:32 +03:00
|
|
|
./lints/queuelint.py || { exit 1; }
|
|
|
|
|
2015-03-14 03:06:03 +03:00
|
|
|
echo "Running flake8"
|
|
|
|
flake8 || { echo "flake8 errors found!"; exit 1; }
|
|
|
|
|
2015-09-22 00:06:58 +03:00
|
|
|
echo "Running isort"
|
|
|
|
isort --check-only --diff --quiet \
|
|
|
|
|| { echo "isort errors found! Run 'isort' with no options to fix."; exit 1; }
|
|
|
|
|
2016-05-03 16:41:40 +03:00
|
|
|
echo "Running Django system checks"
|
|
|
|
# See .travis.yml for explanation of the environment variable overriding.
|
2017-01-05 02:54:25 +03:00
|
|
|
SITE_URL="https://treeherder.dev" TREEHERDER_DEBUG="False" ./manage.py check --deploy --fail-level WARNING || { exit 1; }
|
2016-05-03 16:41:40 +03:00
|
|
|
|
2015-03-14 03:06:03 +03:00
|
|
|
echo "Running Python tests"
|
2015-10-26 14:18:08 +03:00
|
|
|
py.test tests/
|