Testing pipeline

This commit is contained in:
Frisk 2019-02-13 01:00:51 +01:00
parent 53b96024de
commit 3fdcdf296a
No known key found for this signature in database
GPG key ID: 0E9A7D3C0A01586C

View file

@ -1,11 +1,13 @@
test: test:
type: test type: test
script: script:
- wget https://github.com/chriskuehl/python3.6-debian-stretch/releases/download/v3.6.3-1-deb9u1/{python3.6_3.6.3-1.deb9u1_amd64,python3.6-minimal_3.6.3-1.deb9u1_amd64,python3.6-dev_3.6.3-1.deb9u1_amd64,libpython3.6_3.6.3-1.deb9u1_amd64,libpython3.6-minimal_3.6.3-1.deb9u1_amd64,libpython3.6-stdlib_3.6.3-1.deb9u1_amd64,libpython3.6-dev_3.6.3-1.deb9u1_amd64}.deb
- dpkg -i *.deb
- apt-get update -qy - apt-get update -qy
- apt-get install -y python-dev python-pip - apt-get install -y python-dev python-pip
- pip install -r requirements.txt - pip install -r requirements.txt
- sed -i -e 's/https:\/\/discordapp.com\/api\/webhooks\/111111111111111111\/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/$DISCORD/g' settings.json.example - sed -i -e 's/https:\/\/discordapp.com\/api\/webhooks\/111111111111111111\/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/$DISCORD/g' settings.json.example
- mv settings.json.example settings.json - mv settings.json.example settings.json
- python rcgcdw.py - python3.6 rcgcdw.py
only: only:
- testing - testing