forked from davidjrichardson/apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
23 lines (22 loc) · 838 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
language: python
python:
- "3.6"
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install -U git+https://github.com/Rapptz/discord.py@rewrite
- cp config.example.py config.py
# command to run tests
script:
# Formatting compliance test
- pytest -v
- pycodestyle --show-source --show-pep8 --ignore=E121,E123,E126,E133,E226,E241,E242,E704,W503,W504,E402,W291 --max-line-length=300 karma/* commands/* migrations/* apollo.py models.py
# Discord notifications
after_success:
- wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL