RcGcDw/.gitlab-ci.yml

30 lines
710 B
YAML
Raw Normal View History

2019-02-13 00:18:15 +00:00
image: python:3.6-alpine
2021-01-15 17:06:40 +00:00
include:
- template: Code-Quality.gitlab-ci.yml
2021-05-01 14:47:33 +00:00
pytest:
stage: test
script:
- pytest --junitxml=report.xml
artifacts:
when: always
reports:
junit: report.xml
only:
- testing
- merge_requests
2019-02-12 23:54:33 +00:00
test:
type: test
script:
2019-02-13 01:05:58 +00:00
- apk add libxml2-dev libxslt-dev libxml2 gcc musl-dev linux-headers
2019-02-13 00:07:40 +00:00
- pip3.6 install -r requirements.txt
2019-09-30 11:38:34 +00:00
- sed -i -e "s/111111111111111111/$DISCORD1/g" settings.json.example
- sed -i -e "s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/$DISCORD2/g" settings.json.example
2019-02-12 23:54:33 +00:00
- mv settings.json.example settings.json
2020-07-07 11:21:49 +00:00
- python3.6 start.py --test
2019-02-12 23:54:33 +00:00
only:
- testing
2021-01-15 17:06:40 +00:00
- merge_requests