Use the production requirements in CI

This commit is contained in:
Martin Pépin 2019-11-22 22:22:21 +08:00
parent 481cb5e478
commit e2af45929e
No known key found for this signature in database
GPG key ID: E7520278B1774448

View file

@ -27,7 +27,7 @@ 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 tblib
- pip install --upgrade -r requirements-prod.txt coverage tblib
- python --version
script:
- coverage run manage.py test --parallel
@ -67,7 +67,7 @@ migration_checks:
- mkdir -p vendor/{pip,apt}
- apt-get update -q && apt-get -o dir::cache::archives="vendor/apt" install -yqq postgresql-client
- cp cof/settings/secret_example.py cof/settings/secret.py
- pip install --upgrade -r requirements.txt
- pip install --upgrade -r requirements-prod.txt
- python --version
script: python manage.py makemigrations --dry-run --check
services: