mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-26 11:04:20 +00:00
gitlab-ci: put search_indexes in shared memory
This commit is contained in:
parent
2cbe6fa11c
commit
aafc2e6e96
@ -4,6 +4,7 @@ stages:
|
|||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
|
- env
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install -y gettext python3-xapian libgraphviz-dev
|
- apt-get install -y gettext python3-xapian libgraphviz-dev
|
||||||
- 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
|
||||||
@ -11,6 +12,8 @@ test:
|
|||||||
- 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 -r requirements.txt
|
||||||
- pip install coverage
|
- pip install coverage
|
||||||
|
- mkdir -p /dev/shm/search_indexes
|
||||||
|
- ln -s /dev/shm/search_indexes sith/search_indexes
|
||||||
- ./manage.py compilemessages
|
- ./manage.py compilemessages
|
||||||
- coverage run ./manage.py test
|
- coverage run ./manage.py test
|
||||||
- coverage html
|
- coverage html
|
||||||
|
Loading…
Reference in New Issue
Block a user