forked from hardbyte/python-can
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (53 loc) · 1.89 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
language: python
python:
# CPython; versions 3.0-3.3 have reached EOL
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7-dev" # TODO: change to "3.7" once it is supported by travis-ci
- "nightly"
# PyPy:
- "pypy" # Python 2.7
- "pypy3.5" # Python 3.5
os:
- linux # Linux is officially supported and we test the library under
# many different Python verions (see "python: ..." above)
# - osx # OSX + Python is not officially supported by Travis CI as of Feb. 2018
# nevertheless, "nightly" and some "*-dev" versions seem to work, so we
# include them explicitly below (see "matrix: include: ..." below).
# They only seem to work with the xcode8.3 image, and not the newer ones.
# Thus we will leave this in, until it breaks one day, at which point we
# will probably reomve testing on OSX if it is not supported then.
# See #385 on Github.
# - windows # Windows is not supported at all by Travis CI as of Feb. 2018
# Linux setup
dist: trusty
sudo: required
matrix:
# see "os: ..." above
include:
- os: osx
osx_image: xcode8.3
python: "3.6-dev"
- os: osx
osx_image: xcode8.3
python: "3.7-dev"
- os: osx
osx_image: xcode8.3
python: "nightly"
allow_failures:
# allow all nighly builds to fail, since these python versions might be unstable
- python: "nightly"
# we do not allow dev builds to fail, since these builds are considered stable enough
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo bash test/open_vcan.sh ; fi
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then travis_retry pip install -r doc/doc-requirements.txt; fi
- travis_retry pip install .[test]
script:
- pytest
- codecov
# Build Docs with Sphinx
# -a Write all files
# -n nitpicky
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then python -m sphinx -an doc build; fi