Skip to content

Commit caacb24

Browse files
committed
Introduce stages in .travis.yml
The config file contains now two stages: check and test. If check fails, the test stage won't be executed. This could speed up things.
1 parent c75737d commit caacb24

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

.travis.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,43 @@ install:
1010
- pip install virtualenv tox wheel
1111
- tox --version
1212

13+
stages:
14+
- check
15+
- test
16+
1317
script: tox -v
1418

1519
matrix:
1620
include:
17-
18-
- python: "3.6"
21+
- stage: check
22+
python: 3.6
1923
env: TOXENV=checks
2024

21-
- python: "3.8"
25+
- stage: test
2226
dist: xenial
23-
env: TOXENV=mypy
24-
25-
- python: "3.6"
27+
python: "3.6"
2628
env: TOXENV=py36
2729

28-
- python: "3.7"
30+
- stage: test
2931
dist: xenial
32+
python: "3.7"
3033
env: TOXENV=py37
3134

32-
- python: "3.8"
35+
- stage: test
3336
dist: xenial
37+
python: "3.8"
3438
env: TOXENV=py38
3539

36-
- python: "3.9-dev"
40+
- stage: test
3741
dist: bionic
42+
python: "3.9-dev"
3843
env: TOXENV=py39
3944

40-
- python: "nightly"
45+
- stage: test
4146
dist: bionic
47+
python: "nightly"
4248
env: TOXENV=py310
4349

44-
- python: "3.8"
45-
dist: xenial
46-
env: TOXENV=mypy
4750

4851
jobs:
4952
allow_failures:

0 commit comments

Comments
 (0)