-
Notifications
You must be signed in to change notification settings - Fork 175
/
.travis.yml
70 lines (63 loc) · 1.59 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
dist: xenial
language: python
python:
- "3.7"
- "3.8"
- "3.9-dev"
script: tox
after_success:
- coveralls
notifications:
email:
on_failure: change
env:
global:
- TEST_PYPI_URL=https://test.pypi.org/legacy/
- PYPI_URL=https://upload.pypi.org/legacy/
install:
- pip install --upgrade pip && pip install -r requirements.txt && pip install --upgrade -r dev-requirements.txt && pip install .
cache: pip
stages:
- test
- "Local Installation Test"
- "Coverage"
- "Build docs"
- "Deploy to PyPI"
- "PyPI Installation Test"
jobs:
include:
- &local_installation_test
stage: "Local Installation Test"
python: "3.7"
script: bash tests/local_installation_test.sh
- <<: *local_installation_test
python: "3.8"
- <<: *local_installation_test
python: "3.9-dev"
- &coverage
stage: "Coverage"
python: "3.7"
script: coverage run --rcfile=.coveragerc setup.py test -s tests.unit
- <<: *coverage
python: "3.8"
- <<: *coverage
python: "3.9-dev"
- stage: "Build docs"
script: cd sphinx && make clean && make html
- &deploy_to_pypi
stage: "Deploy to PyPI"
python: "3.7"
script: bash deploy/deploy_to_pypi.sh
- <<: *deploy_to_pypi
python: "3.8"
- <<: *deploy_to_pypi
python: "3.9-dev"
- &pypi_installation_test
stage: "PyPI Installation Test"
python: "3.7"
if: branch = master
script: bash tests/pypi_installation_test.sh
- <<: *pypi_installation_test
python: "3.8"
- <<: *pypi_installation_test
python: "3.9-dev"