mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Trying to mitigate installation of packages anew for gitlab ci pipelines
This commit is contained in:
parent
6e985be8be
commit
f8e69c7fa7
|
@ -3,6 +3,9 @@ image: python:3.7-alpine
|
||||||
include:
|
include:
|
||||||
- template: Code-Quality.gitlab-ci.yml
|
- template: Code-Quality.gitlab-ci.yml
|
||||||
|
|
||||||
|
variables:
|
||||||
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- pytest
|
- pytest
|
||||||
|
@ -10,11 +13,16 @@ stages:
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- settings.json
|
- settings.json
|
||||||
|
- .cache/pip
|
||||||
|
- venv/
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- apk add libxml2-dev libxslt-dev libxml2 gcc musl-dev linux-headers
|
- apk add libxml2-dev libxslt-dev libxml2 gcc musl-dev linux-headers
|
||||||
|
- pip3.7 install virtualenv
|
||||||
|
- virtualenv venv
|
||||||
|
- source venv/bin/activate
|
||||||
- pip3.7 install -r requirements.txt
|
- pip3.7 install -r requirements.txt
|
||||||
- sed -i -e "s/111111111111111111/$DISCORD1/g" settings.json.example
|
- sed -i -e "s/111111111111111111/$DISCORD1/g" settings.json.example
|
||||||
- sed -i -e "s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/$DISCORD2/g" settings.json.example
|
- sed -i -e "s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/$DISCORD2/g" settings.json.example
|
||||||
|
@ -27,6 +35,7 @@ pytest:
|
||||||
stage: pytest
|
stage: pytest
|
||||||
needs: ['test']
|
needs: ['test']
|
||||||
script:
|
script:
|
||||||
|
- source venv/bin/activate
|
||||||
- pip3.7 install -U pytest
|
- pip3.7 install -U pytest
|
||||||
- pytest --junitxml=report.xml
|
- pytest --junitxml=report.xml
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
Loading…
Reference in a new issue