|
1 | 1 | language: c |
2 | 2 |
|
3 | | -# Setting sudo to false opts in to Travis-CI container-based builds. |
4 | 3 | sudo: false |
5 | 4 |
|
6 | 5 | os: |
7 | | - - linux |
8 | | - - osx |
| 6 | + - linux |
| 7 | + - windows |
| 8 | + - osx |
9 | 9 |
|
10 | 10 | env: |
11 | 11 | global: |
12 | 12 | - SETUP_XVFB=True |
13 | | - - CONDA_DEPENDENCIES="pytest matplotlib nose coverage freetype=2.5.5" |
14 | | - - PIP_DEPENDENCIES="pytest-cov coveralls" |
| 13 | + - TOXENV='test' |
| 14 | + - TOXARGS='-v' |
| 15 | + - TOXPOSARGS='' |
15 | 16 | matrix: |
16 | | - - PYTHON_VERSION=3.4 MATPLOTLIB_VERSION=1.5 |
17 | | - - PYTHON_VERSION=2.7 MATPLOTLIB_VERSION=1.5 |
18 | | - - PYTHON_VERSION=3.5 MATPLOTLIB_VERSION=1.5 |
19 | | - - PYTHON_VERSION=2.7 MATPLOTLIB_VERSION=2.0 |
20 | | - - PYTHON_VERSION=3.5 MATPLOTLIB_VERSION=2.0 |
21 | | - - PYTHON_VERSION=3.6 MATPLOTLIB_VERSION=2.0 |
22 | | - |
23 | | - # The following build is meant to check that dependencies get set up correctly, but currently |
24 | | - # the image tests fail, which should be investigated. |
25 | | - # - PYTHON_VERSION=3.5 CONDA_DEPENDENCIES="coverage freetype libpng" |
| 17 | + - PYTHON_VERSION=2.7 TOXENV=py27-test-mpl15 |
| 18 | + - PYTHON_VERSION=3.5 TOXENV=py35-test-mpl20 |
| 19 | + - PYTHON_VERSION=3.6 TOXENV=py36-test-mpl21 |
| 20 | + - PYTHON_VERSION=3.6 TOXENV=py36-test-mpl22 |
| 21 | + - PYTHON_VERSION=3.7 TOXENV=py37-test-mpl30 |
| 22 | + - PYTHON_VERSION=3.8 TOXENV=py38-test-mpl31 |
| 23 | + - PYTHON_VERSION=3.8 TOXENV=codestyle |
26 | 24 |
|
27 | 25 | install: |
28 | | - |
29 | | - # We use the ci-helpers package from the Astropy project to set up conda |
30 | | - # with any requested dependencies above. |
31 | | - - git clone git://github.com/astropy/ci-helpers.git |
32 | | - - source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh |
33 | | - |
34 | | - # Need to use develop instead of install to make sure coverage works |
35 | | - - python setup.py develop |
| 26 | + git clone git://github.com/astropy/ci-helpers.git; |
| 27 | + source ci-helpers/travis/setup_conda.sh; |
36 | 28 |
|
37 | 29 | script: |
38 | | - - python -c 'import pytest_mpl.plugin' |
39 | | - - pytest -vv --mpl --cov pytest_mpl tests |
40 | | - # Make sure that the tests run ok even without the --mpl option (we close |
41 | | - # figures anyway in this case) |
42 | | - - pytest -vv --cov pytest_mpl --cov-append tests |
43 | | - - python setup.py check --restructuredtext |
| 30 | + - pip install tox |
| 31 | + - tox $TOXARGS -- $TOXPOSARGS |
44 | 32 |
|
45 | 33 | after_success: |
46 | | - - coveralls |
| 34 | + - coveralls |
0 commit comments