gitlab-ci: use poetry

This commit is contained in:
Skia 2022-02-28 10:34:15 +01:00
parent 6c5db61a97
commit 05dd3ad642

View File

@ -7,13 +7,14 @@ test:
- env - env
- apt-get update - apt-get update
- apt-get install -y gettext libxapian-dev libgraphviz-dev - apt-get install -y gettext libxapian-dev libgraphviz-dev
- pip install .[testing] - pip install poetry
- poetry install -E testing
- mkdir -p /dev/shm/search_indexes - mkdir -p /dev/shm/search_indexes
- ln -s /dev/shm/search_indexes sith/search_indexes - ln -s /dev/shm/search_indexes sith/search_indexes
- ./manage.py compilemessages - poetry run ./manage.py compilemessages
- coverage run ./manage.py test - poetry run coverage run ./manage.py test
- coverage html - poetry run coverage html
- coverage report - poetry run coverage report
variables: variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip_tests" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip_tests"
cache: cache: