-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
49 lines (44 loc) · 928 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
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
language: generic
os: linux
jobs:
fast_finish: true
include:
- env:
- PYTHON=2.7
- COVERAGE='false'
- DOCS='false'
- env:
- PYTHON=3.4
- COVERAGE='false'
- DOCS='false'
- env:
- PYTHON=3.5
- COVERAGE='false'
- DOCS='false'
- env:
- PYTHON=3.6
- COVERAGE='true'
- DOCS='true'
- env:
- PYTHON=3.6
- COVERAGE='false'
- DOCS='false'
os: osx
install:
- source ci/install.sh;
script:
- pytest --cov=crprop crprop
- flake8 crprop
- if [[ $DOCS == 'true' ]]; then source ci/build_docs.sh; fi
after_success:
- source ci/after_success.sh
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: docs/_build/html
target_branch: gh-pages
email: "github-pages-deploy@travis-ci.org"
on:
branch: master
condition: $DOCS = 'true'