Commit a5bd73dc authored by hynek's avatar hynek 🤤
Browse files

fix(tests): make and apply migrations before testing

parent 9d864549
......@@ -10,8 +10,6 @@ include:
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
CONTAINER_TEST_IMAGE: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
CONTAINER_RELEASE_IMAGE: $CI_REGISTRY_IMAGE:latest
DS_PIP_DEPENDENCY_PATH: requirements/production.txt
......@@ -51,7 +49,7 @@ tests:
- docker-compose -f ci.yml build
# - docker-compose -f local.yml run --rm django pydocstyle
- docker-compose -f ci.yml run --rm django flake8
- docker-compose -f ci.yml run django coverage run -m pytest
- docker-compose -f local.yml run django /bin/sh -c "./manage.py makemigrations && ./manage.py migrate && coverage run -m pytest"
- docker-compose -f ci.yml run --rm django coverage html
- docker-compose -f ci.yml run --rm django /bin/sh -c "cd docs && apk add make && make html"
- docker-compose -f ci.yml run django coverage report
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment