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
|
|
|
|
|
2020-05-13 21:15:24 +02:00
|
|
|
# Disabled because of the frequently flaky
|
|
|
|
# behaviour of it.
|
|
|
|
# General pattern of the flaky failure is
|
|
|
|
#
|
|
|
|
# FAIL "#zhome" never appeared in 5000ms
|
|
|
|
# type: uncaughtError
|
|
|
|
# file: /home/circleci/zulip/frontend_tests/casper_tests/04-compose.js
|
|
|
|
# error: "#zhome" never appeared in 5000ms
|
|
|
|
# stack: not provided
|
|
|
|
#
|
|
|
|
# ./tools/test-js-with-casper --xunit-export
|
2017-07-25 04:46:15 +02:00
|
|
|
|
2020-03-26 21:00:05 +01:00
|
|
|
./tools/test-js-with-puppeteer
|
|
|
|
|
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.
|