Skip to content

Commit 0165446

Browse files
committed
Explicitly specify testpaths and reorder test matrix to have slowest jobs first
1 parent 7edc17e commit 0165446

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

.travis.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ env:
1111

1212
matrix:
1313
include:
14+
# Test the oldest and newest configuration on Mac and Windows
15+
- os: osx
16+
language: c
17+
env: PYTHON_VERSION=2.7 TOXENV=py27-test-mpl15
18+
- os: osx
19+
language: c
20+
env: PYTHON_VERSION=3.8 TOXENV=py38-test-mpl31
21+
- os: windows
22+
language: c
23+
env: PYTHON_VERSION=2.7 TOXENV=py27-test-mpl15
24+
- os: windows
25+
language: c
26+
env: PYTHON_VERSION=3.8 TOXENV=py38-test-mpl31
1427
# Test all configurations on Linux
1528
- python: 2.7
1629
env: TOXENV=py27-test-mpl15
@@ -28,19 +41,6 @@ matrix:
2841
env: TOXENV=py38-test-minimal
2942
- python: 3.8
3043
env: TOXENV=codestyle
31-
# Also test the oldest and newest configuration on Mac and Windows
32-
- os: osx
33-
language: c
34-
env: PYTHON_VERSION=2.7 TOXENV=py27-test-mpl15
35-
- os: osx
36-
language: c
37-
env: PYTHON_VERSION=3.8 TOXENV=py38-test-mpl31
38-
- os: windows
39-
language: c
40-
env: PYTHON_VERSION=2.7 TOXENV=py27-test-mpl15
41-
- os: windows
42-
language: c
43-
env: PYTHON_VERSION=3.8 TOXENV=py38-test-mpl31
4444

4545
install:
4646
- if [[ $TRAVIS_OS_NAME != linux ]]; then

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ pytest11 =
3838
test =
3939
pytest-cov
4040
matplotlib
41+
42+
[tool:pytest]
43+
testpaths = "tests"

0 commit comments

Comments
 (0)