forked from MechanicalSoup/MechanicalSoup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (30 loc) · 1.05 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
# Validate all YAML changes, e.g. http://lint.travis-ci.org/
sudo: false
dist: xenial
language: python
cache: pip
python:
- 2.7
- 3.5
- 3.6
- 3.7
- 3.8
- pypy2.7-6.0
- pypy3.5-6.0
install:
- pip install --upgrade pytest # needed for cases where there is already an old pytest installed
- pip install pytest-cov # needed for the codecov uploader
- pip install -r requirements.txt -r tests/requirements.txt
script:
# Do not perform flake8 checks in pypy environments (see issue #146)
- if [[ $TRAVIS_PYTHON_VERSION == pypy* ]]; then pytest -o 'flake8-ignore=*.py ALL'; fi
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then pytest; fi
after_success:
- bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/d591e73173ccf74fe8ba
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always