mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-25 02:24:26 +00:00
gitlab-ci: use poetry
This commit is contained in:
parent
6c5db61a97
commit
05dd3ad642
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user