core.ci -- Run tests in parallel

tblib displays traceback correctly with --parallel
This commit is contained in:
Aurélien Delobelle 2018-10-28 14:57:32 +01:00 committed by Aurélien Delobelle
parent e6e4a13440
commit 8db55d792c

View file

@ -27,10 +27,10 @@ test:
- sed -i.bak -E 's;^REDIS_PASSWD = .*$;REDIS_PASSWD = "";' cof/settings/secret.py
# Remove the old test database if it has not been done yet
- psql --username=$POSTGRES_USER --host=$DBHOST -c "DROP DATABASE IF EXISTS test_$POSTGRES_DB"
- pip install --upgrade -r requirements.txt coverage
- pip install --upgrade -r requirements.txt coverage tblib
- python --version
script:
- coverage run manage.py test
- coverage run manage.py test --parallel
after_script:
- coverage report
services: