mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Updated .gilab-ci.yml
This commit is contained in:
parent
483d15e732
commit
18946c2681
|
@ -3,6 +3,21 @@ image: python:3.7-alpine
|
||||||
include:
|
include:
|
||||||
- template: Code-Quality.gitlab-ci.yml
|
- template: Code-Quality.gitlab-ci.yml
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- pytest
|
||||||
|
|
||||||
|
test:
|
||||||
|
script:
|
||||||
|
- apk add libxml2-dev libxslt-dev libxml2 gcc musl-dev linux-headers
|
||||||
|
- pip3.7 install -r requirements.txt
|
||||||
|
- sed -i -e "s/111111111111111111/$DISCORD1/g" settings.json.example
|
||||||
|
- sed -i -e "s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/$DISCORD2/g" settings.json.example
|
||||||
|
- mv settings.json.example settings.json
|
||||||
|
- python3.7 start.py --test
|
||||||
|
only:
|
||||||
|
- testing
|
||||||
|
|
||||||
pytest:
|
pytest:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
|
@ -14,17 +29,4 @@ pytest:
|
||||||
junit: report.xml
|
junit: report.xml
|
||||||
only:
|
only:
|
||||||
- testing
|
- testing
|
||||||
- merge_requests
|
|
||||||
|
|
||||||
test:
|
|
||||||
type: test
|
|
||||||
script:
|
|
||||||
- apk add libxml2-dev libxslt-dev libxml2 gcc musl-dev linux-headers
|
|
||||||
- pip3.7 install -r requirements.txt
|
|
||||||
- sed -i -e "s/111111111111111111/$DISCORD1/g" settings.json.example
|
|
||||||
- sed -i -e "s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/$DISCORD2/g" settings.json.example
|
|
||||||
- mv settings.json.example settings.json
|
|
||||||
- python3.7 start.py --test
|
|
||||||
only:
|
|
||||||
- testing
|
|
||||||
- merge_requests
|
|
||||||
|
|
Loading…
Reference in a new issue