forked from xlcnd/isbnlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
51 lines (51 loc) · 1.42 KB
/
Copy path.travis.yml
File metadata and controls
51 lines (51 loc) · 1.42 KB
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
sudo: false
language: python
branches:
only:
- v3.6.8
matrix:
include:
- python: "2.7"
env: TOXENV=py27
- python: "3.4"
env: TOXENV=py34
- python: "3.3"
env: TOXENV=py33
- python: "2.6"
env: TOXENV=py26
- python: "3.5"
env: TOXENV=py35
- python: "3.6"
env: TOXENV=py36
- python: "nightly"
env: TOXENV=nightly
- python: "pypy"
env: TOXENV=pypy
- python: "pypy3"
env: TOXENV=pypy3
- python: "2.7"
env: TOXENV=checkers
- python: "2.7"
env: DOC=sphinx
allow_failures:
- env: TOXENV=nightly
- env: TOXENV=py36
- env: TOXENV=py35
- env: TOXENV=pypy
- env: TOXENV=pypy3
- env: TOXENV=checkers
install:
- if [[ $TRAVIS_PULL_REQUEST != 'false' ]]; then pip install yapf; fi
- if [[ ! -z $TOXENV ]]; then pip install tox; fi
- if [[ ! -z $TOXENV ]]; then pip install flake8; fi
- if [[ ! -z $TOXENV ]]; then pip install pep8-naming; fi
- if [[ $TOXENV == 'py27' ]]; then pip install coveralls; fi
- if [[ $DOC == 'sphinx' ]]; then pip install sphinx; fi
script:
- if [[ $TRAVIS_PULL_REQUEST != 'false' ]] && [[ $TOXENV == 'checkers' ]]; then yapf -i isbnlib; fi
- if [[ ! -z $TOXENV ]]; then tox -e $TOXENV; fi
- if [[ $DOC == 'sphinx' ]]; then cd docs; sphinx-build -n -b html -d _build/.doctrees . _build/html; fi
after_success:
- if [[ $TOXENV == 'py27' ]]; then coveralls; fi
notifications:
email: false