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 - 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 # 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" - 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 - python --version
script: script:
- coverage run manage.py test --parallel - coverage run manage.py test --parallel
@ -67,7 +67,7 @@ migration_checks:
- mkdir -p vendor/{pip,apt} - mkdir -p vendor/{pip,apt}
- apt-get update -q && apt-get -o dir::cache::archives="vendor/apt" install -yqq postgresql-client - 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 - 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 - python --version
script: python manage.py makemigrations --dry-run --check script: python manage.py makemigrations --dry-run --check
services: services: