|
1 | 1 | language: python |
2 | | - |
3 | 2 | python: |
4 | | - # CPython; versions pre-2.7 and 3.0-3.4 have reached EOL |
5 | | - - "2.7" |
6 | | - - "3.5" |
7 | | - - "3.6" |
8 | | - - "3.7-dev" # TODO: change to "3.7" once it is supported by travis-ci |
9 | | - - "nightly" |
10 | | - # PyPy: |
11 | | - - "pypy" # Python 2.7 |
12 | | - - "pypy3.5" # Python 3.5 |
13 | | - |
| 3 | +- '2.7' |
| 4 | +- '3.6' |
| 5 | +- 3.7-dev |
| 6 | +- nightly |
| 7 | +- pypy |
| 8 | +- pypy3.5 |
14 | 9 | os: |
15 | | - - linux # Linux is officially supported and we test the library under |
16 | | - # many different Python verions (see "python: ..." above) |
17 | | - |
18 | | -# - osx # OSX + Python is not officially supported by Travis CI as of Feb. 2018 |
19 | | - # nevertheless, "nightly" and some "*-dev" versions seem to work, so we |
20 | | - # include them explicitly below (see "matrix: include: ..." below). |
21 | | - # They only seem to work with the xcode8.3 image, and not the newer ones. |
22 | | - # Thus we will leave this in, until it breaks one day, at which point we |
23 | | - # will probably reomve testing on OSX if it is not supported then. |
24 | | - # See #385 on Github. |
25 | | - |
26 | | -# - windows # Windows is not supported at all by Travis CI as of Feb. 2018 |
27 | | - |
28 | | -# Linux setup |
| 10 | +- linux |
29 | 11 | dist: trusty |
30 | 12 | sudo: required |
31 | | - |
32 | 13 | matrix: |
33 | | - # see "os: ..." above |
34 | 14 | include: |
35 | | - - os: osx |
36 | | - osx_image: xcode8.3 |
37 | | - python: "3.6-dev" |
38 | | - - os: osx |
39 | | - osx_image: xcode8.3 |
40 | | - python: "3.7-dev" |
41 | | - - os: osx |
42 | | - osx_image: xcode8.3 |
43 | | - python: "nightly" |
44 | | - |
| 15 | + - os: osx |
| 16 | + osx_image: xcode8.3 |
| 17 | + python: 3.6-dev |
| 18 | + - os: osx |
| 19 | + osx_image: xcode8.3 |
| 20 | + python: 3.7-dev |
| 21 | + - os: osx |
| 22 | + osx_image: xcode8.3 |
| 23 | + python: nightly |
45 | 24 | allow_failures: |
46 | | - # allow all nighly builds to fail, since these python versions might be unstable |
47 | | - - python: "nightly" |
48 | | - # we do not allow dev builds to fail, since these builds are considered stable enough |
49 | | - |
| 25 | + - python: nightly |
50 | 26 | install: |
51 | | - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo bash test/open_vcan.sh ; fi |
52 | | - - if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then travis_retry pip install -r doc/doc-requirements.txt; fi |
53 | | - - travis_retry pip install .[test] |
54 | | - |
| 27 | +- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo bash test/open_vcan.sh ; fi |
| 28 | +- if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then travis_retry pip install -r doc/doc-requirements.txt; |
| 29 | + fi |
| 30 | +- travis_retry pip install .[test] |
55 | 31 | script: |
56 | | - - pytest |
57 | | - - codecov |
58 | | - # Build Docs with Sphinx |
59 | | - # -a Write all files |
60 | | - # -n nitpicky |
61 | | - - if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then python -m sphinx -an doc build; fi |
| 32 | +- pytest |
| 33 | +- codecov |
| 34 | +- if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then python -m sphinx -an doc build; |
| 35 | + fi |
| 36 | + |
0 commit comments