This repository has been archived by the owner on Jan 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (50 loc) · 1.54 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
sudo: false
language: python
branches:
only:
- dev
- v0.0.2
matrix:
include:
- os: osx
language: generic
env: TOXENV=py36
- python: "2.7"
env: TOXENV=py27
- python: "3.6"
env: TOXENV=py36
- python: "3.5"
env: TOXENV=py35
- python: "nightly"
env: TOXENV=nightly
- python: "3.5"
env: TOXENV=checkers
- python: "3.6"
env: ENV=dev
- dist: xenial
language: python
python: 3.7
env: TOXENV=py37
allow_failures:
- env: TOXENV=nightly
- env: ENV=dev
install:
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then pip3 install tox; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then pip3 install -r requirements.txt; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then pip install tox; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then pip install -r requirements.txt; fi
- if [[ $TOXENV == 'checkers' ]]; then pip install -r requirements.txt; fi
- if [[ $TOXENV == 'checkers' ]]; then pip install flake8; fi
- if [[ $TOXENV == 'checkers' ]]; then pip install pep8-naming; fi
- if [[ $TOXENV == 'py35' ]]; then pip install coveralls; fi
- if [[ $TRAVIS_PULL_REQUEST != 'false' ]]; then pip install yapf; fi
script:
- if [[ $TRAVIS_PULL_REQUEST != 'false' ]] && [[ $TOXENV == 'checkers' ]]; then yapf -i isbnlib_oclc; fi
- if [[ ! -z $TOXENV ]]; then tox -e $TOXENV; fi
- if [[ $ENV == 'dev' ]]; then tox -e py36 -c tox-dev.ini; fi
after_success:
- if [[ $TOXENV == 'py35' ]]; then coveralls; fi
notifications:
email:
on_success: never
on_failure: always