Skip to content

Commit 56a2563

Browse files
authored
Split Travis into multiple stages (#216)
1 parent f98b182 commit 56a2563

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

.travis.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,25 @@ python:
88

99
install:
1010
# XXX: Migrate this to Poetry fully
11-
- pip install virtualenv
11+
- "pip install virtualenv"
12+
- "virtualenv ./venv"
13+
- "source ./venv/bin/activate"
14+
- "python -m pip install -U pip"
15+
- "pip install tox"
1216

17+
jobs:
18+
include:
19+
- stage: "lint"
20+
name: "Linting Tests"
21+
script: "tox -e black"
22+
- script: "tox -e flake8"
23+
- script: "tox -e bandit"
24+
- script: "tox -e pydocstyle"
25+
26+
stages:
27+
- "lint"
28+
- "test"
1329

1430
script:
15-
# Activate virtualenv, install tox and run all tests.
16-
- virtualenv ./venv
17-
- source ./venv/bin/activate
18-
- python -m pip install -U pip
19-
- pip install tox
20-
- tox
21-
- tox -e coveralls
31+
- "tox -e py46,py37,py38"
32+
- "tox -e coveralls"

0 commit comments

Comments
 (0)