2015-10-15 01:47:42 +02:00
|
|
|
#!/bin/bash
|
2016-07-18 23:22:10 +02:00
|
|
|
|
2018-12-10 08:05:16 +01:00
|
|
|
source tools/ci/activate-venv
|
2016-07-18 23:22:10 +02:00
|
|
|
|
2015-10-15 01:47:42 +02:00
|
|
|
set -e
|
|
|
|
set -x
|
2016-07-18 23:22:10 +02:00
|
|
|
|
2018-02-01 20:37:00 +01:00
|
|
|
./tools/lint --frontend --no-gitlint # gitlint disabled because flaky
|
2017-08-27 22:42:54 +02:00
|
|
|
|
|
|
|
# Run the node tests first, since they're fast and deterministic
|
2017-06-07 04:24:39 +02:00
|
|
|
./tools/test-js-with-node --coverage
|
2017-08-27 22:42:54 +02:00
|
|
|
|
|
|
|
# Check capitalization of strings
|
|
|
|
./manage.py makemessages --locale en
|
|
|
|
PYTHONWARNINGS=ignore ./tools/check-capitalization --no-generate
|
|
|
|
PYTHONWARNINGS=ignore ./tools/check-frontend-i18n --no-generate
|
|
|
|
|
|
|
|
# Run the slower Casper tests last
|
2015-10-15 01:47:42 +02:00
|
|
|
./tools/test-js-with-casper
|
2017-07-25 04:46:15 +02:00
|
|
|
|
|
|
|
# NB: Everything here should be in `tools/test-all`. If there's a
|
|
|
|
# reason not to run it there, it should be there as a comment
|
|
|
|
# explaining why.
|