1+ #  We set the language to c because python isn't supported on the MacOS X nodes
2+ #  on Travis. However, the language ends up being irrelevant anyway, since we
3+ #  install Python ourselves using conda.
14language : c 
25
6+ os :
7+     - linux 
8+ 
9+ #  Use Travis' container-based architecture
310sudo : false 
411
512notifications :
@@ -10,29 +17,58 @@ notifications:
1017    if : type = cron 
1118
1219env :
13-   global :
14-     -  CONDA_DEPENDENCIES="pytest pytest-cov numpy astropy" 
15-     -  PIP_DEPENDENCIES="codecov" 
16-   matrix : 
17-     -  PYTHON_VERSION=2.7 
18-     -  PYTHON_VERSION=3.5 
19-     -  PYTHON_VERSION=3.6 
20+      global :
21+          #  The following versions are the 'default' for tests, unless 
22+          #  overidden underneath. They are defined here in order to save having 
23+          #  to repeat them for all configurations. 
24+         -  TOXENV='test' 
25+         -  TOXARGS='-v' 
26+         -  TOXPOSARGS='' 
2027
21- install :
22-     - git clone git://github.com/astropy/ci-helpers.git 
23-     - source ci-helpers/travis/setup_conda.sh 
28+ matrix :
29+     include :
2430
25-     #  Make sure pytest-arraydiff wasn't installed by conda
26-     - conda remove pytest-arraydiff --force || true 
31+         - language : python 
32+           python : 3.6 
33+           name : Python 3.6 and pytest 4.6 (Linux) 
34+           env : TOXENV=py36-test-pytest46 
2735
28-     #  Need to use develop instead of install to make sure coverage works
29-     - pip install -e . 
36+         - os : windows 
37+           name : Python 3.6 and pytest 5.0 (Windows) 
38+           env : PYTHON_VERSION=3.6 
39+                TOXENV=py36-test-pytest50 
3040
31- script :
32-    - python -c 'import pytest_arraydiff.plugin' 
33-    - pytest -vv --arraydiff --cov pytest_arraydiff tests 
34-    - pytest -vv --cov pytest_arraydiff --cov-append tests 
35-    - python setup.py check --restructuredtext 
41+         - os : osx 
42+           name : Python 3.7 and pytest 5.1 (MacOS X) 
43+           env : PYTHON_VERSION=3.7 
44+                TOXENV=py37-test-pytest51 
45+ 
46+         - language : python 
47+           python : 3.7 
48+           name : Python 3.7 and pytest 5.2 (Linux) 
49+           env : TOXENV=py37-test-pytest52 
50+ 
51+         - os : windows 
52+           name : Python 3.8 and pytest 5.3 (Windows) 
53+           env : PYTHON_VERSION=3.8 
54+                TOXENV=py38-test-pytest53 
3655
37- after_success :
38-    - codecov 
56+         - language : python 
57+           python : 3.8 
58+           name : Python 3.8 and pytest 6.0 (Linux) 
59+           env : TOXENV=py38-test-pytest60 
60+ 
61+         - os : osx 
62+           name : Python 3.8 and pytest dev (MacOS X) 
63+           env : PYTHON_VERSION=3.8 
64+                TOXENV=py38-test-pytestdev 
65+ 
66+ install :
67+     - if [[ $TRAVIS_OS_NAME == osx || $TRAVIS_OS_NAME == windows ]]; then 
68+         git clone git://github.com/astropy/ci-helpers.git; 
69+         source ci-helpers/travis/setup_python.sh; 
70+       fi 
71+ 
72+ script :
73+     - pip install tox 
74+     - tox $TOXARGS -- $TOXPOSARGS 
0 commit comments