-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
40 lines (31 loc) · 1.14 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
36
37
38
39
40
dist: xenial
sudo: required
language: python
cache: pip
python:
- 3.4
- 3.5
- 3.6
- 3.7
- nightly
matrix:
fast_finish: true
allow_failures:
- python: nightly
install:
- pip install .
- if [[ $TRAVIS_PYTHON_VERSION != 3.7 ]]; then pip install -r requirements.txt && pip install -r requirements_dev.txt; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then pip install -U pipenv==2018.11.26 && pipenv sync --dev; fi
before_script:
- cd tests/data && ./download.sh && cd ../..
- cd tests/data && python -m download && cd ../..
script:
- if [[ $TRAVIS_PYTHON_VERSION == 3.4 ]]; then py.test; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 || $TRAVIS_PYTHON_VERSION == 3.6 || $TRAVIS_PYTHON_VERSION == 3.7 || $TRAVIS_PYTHON_VERSION == nightly ]]; then pytest; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then mkdir docs/_static && sphinx-build -nWT -b html -d docs/_build/doctrees docs docs/_build/html; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then coverage run --source=arpa setup.py test; fi
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then coveralls; fi
notifications:
on_failure: always
on_success: change