Skip to content

Commit 5f41a2d

Browse files
committed
Simplify Travis test matrix
1 parent e107724 commit 5f41a2d

File tree

1 file changed

+29
-13
lines changed

1 file changed

+29
-13
lines changed

.travis.yml

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
language: c
1+
language: python
22

33
sudo: false
44

@@ -13,21 +13,37 @@ env:
1313
- TOXENV='test'
1414
- TOXARGS='-v'
1515
- TOXPOSARGS=''
16-
matrix:
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=py38-test-minimal
24-
- PYTHON_VERSION=3.8 TOXENV=codestyle
16+
17+
matrix:
18+
include:
19+
- python: 2.7
20+
env: TOXENV=py27-test-mpl15
21+
- python: 3.5
22+
env: TOXENV=py35-test-mpl20
23+
- python: 3.6
24+
env: TOXENV=py36-test-mpl21
25+
- python: 3.6
26+
env: TOXENV=py36-test-mpl22
27+
- python: 3.7
28+
env: TOXENV=py37-test-mpl30
29+
- python: 3.8
30+
env: TOXENV=py38-test-mpl31
31+
- python: 3.8
32+
env: TOXENV=py38-test-minimal
33+
- python: 3.8
34+
env: TOXENV=codestyle
35+
- os: osx
36+
env: PYTHON_VERSION=3.8 TOXENV=py38-test-mpl31
37+
- os: windows
38+
env: PYTHON_VERSION=3.8 TOXENV=py38-test-mpl31
2539

2640
install:
27-
git clone git://github.com/astropy/ci-helpers.git;
28-
source ci-helpers/travis/setup_conda.sh;
41+
- if [[ $TRAVIS_OS_NAME != linux ]]; then
42+
git clone git://github.com/astropy/ci-helpers.git;
43+
source ci-helpers/travis/setup_conda.sh;
44+
fi
2945

30-
script:
46+
script:
3147
- pip install tox
3248
- tox $TOXARGS -- $TOXPOSARGS
3349

0 commit comments

Comments
 (0)