mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
gitlab-ci: keep pip cache between jobs
This commit is contained in:
parent
aafc2e6e96
commit
4119eefe37
@ -10,8 +10,8 @@ test:
|
|||||||
- pushd /usr/lib/python3/dist-packages/xapian && ln -s _xapian* _xapian.so && popd
|
- pushd /usr/lib/python3/dist-packages/xapian && ln -s _xapian* _xapian.so && popd
|
||||||
- export PYTHONPATH="/usr/lib/python3/dist-packages:$PYTHONPATH"
|
- export PYTHONPATH="/usr/lib/python3/dist-packages:$PYTHONPATH"
|
||||||
- python -c 'import xapian' # Fail immediately if there is a problem with xapian
|
- python -c 'import xapian' # Fail immediately if there is a problem with xapian
|
||||||
- pip install -r requirements.txt
|
- pip install -U -r requirements.txt
|
||||||
- pip install coverage
|
- pip install -U coverage
|
||||||
- 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
|
- ./manage.py compilemessages
|
||||||
@ -20,6 +20,11 @@ test:
|
|||||||
- coverage report
|
- coverage report
|
||||||
- cd doc
|
- cd doc
|
||||||
- make html # Make documentation
|
- make html # Make documentation
|
||||||
|
variables:
|
||||||
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip_tests"
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .cache/pip_tests
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- coverage_report/
|
- coverage_report/
|
||||||
@ -27,5 +32,10 @@ test:
|
|||||||
black:
|
black:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- pip install black
|
- pip install -U black
|
||||||
- black --check .
|
- black --check .
|
||||||
|
variables:
|
||||||
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip_black"
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .cache/pip_black
|
||||||
|
Loading…
Reference in New Issue
Block a user