-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
35 lines (34 loc) · 1.2 KB
/
.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
24
25
26
27
28
29
30
31
32
33
34
35
language: python
cache: pip
jobs:
include:
- stage: Testing
python: '3.6'
install:
- pip install -r requirements-dev.txt
- pip install -e .
script: pytest
- stage: Testing
python: '3.7'
install:
- pip install -r requirements-dev.txt
- pip install -e .
script: pytest
- stage: Testing
python: '3.8'
install:
- pip install -r requirements-dev.txt
- pip install -e .
- pip install pytest-cov
script:
- pytest --cov jikanpy tests/
- mypy jikanpy
after_success:
- bash <(curl -s https://codecov.io/bash)
- test $TRAVIS_BRANCH = "master" && wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh
- test $TRAVIS_BRANCH = "master" && chmod +x send.sh
- test $TRAVIS_BRANCH = "master" && ./send.sh success $WEBHOOK_URL_PASS
after_failure:
- test $TRAVIS_BRANCH = "master" && wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh
- test $TRAVIS_BRANCH = "master" && chmod +x send.sh
- test $TRAVIS_BRANCH = "master" && ./send.sh failure $WEBHOOK_URL_FAIL