RcGcDw/.gitlab-ci.yml
2021-05-01 16:47:33 +02:00

30 lines
710 B
YAML

image: python:3.6-alpine
include:
- template: Code-Quality.gitlab-ci.yml
pytest:
stage: test
script:
- pytest --junitxml=report.xml
artifacts:
when: always
reports:
junit: report.xml
only:
- testing
- merge_requests
test:
type: test
script:
- apk add libxml2-dev libxslt-dev libxml2 gcc musl-dev linux-headers
- pip3.6 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.6 start.py --test
only:
- testing
- merge_requests