2018-12-18 02:08:53 +01:00
|
|
|
#!/usr/bin/env 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
|
|
|
|
2019-06-21 18:40:38 +02:00
|
|
|
./tools/lint --groups=frontend --skip=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
|
2018-03-08 16:31:57 +01:00
|
|
|
./tools/test-js-with-casper --xunit-export
|
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.
|