Skip to content

Commit c9f648a

Browse files
committed
fix repeat env in travis + better test reports in travis
1 parent fff1218 commit c9f648a

File tree

2 files changed

+44
-10
lines changed

2 files changed

+44
-10
lines changed

.travis.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,23 @@ matrix:
2020
- os: linux
2121
sudo: required
2222
python: 3.7
23-
env: TOXENV=py37-marshmallow2
23+
env: TOXENV=py37-marshmallow3
24+
- os: linux
25+
sudo: required
26+
python: 3.7
27+
env: TOXENV=py37-black
28+
- os: linux
29+
sudo: required
30+
python: 3.7
31+
env: TOXENV=py37-flake8
32+
- os: linux
33+
sudo: required
34+
python: 3.7
35+
env: TOXENV=py37-bandit
36+
- os: linux
37+
sudo: required
38+
python: 3.7
39+
env: TOXENV=py37-vulture
2440
- os: linux
2541
sudo: required
2642
python: pypy3.5-6.0

tox.ini

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,40 @@ deps=
88
marshmallow3: marshmallow >=3.0.0rc5
99

1010
whitelist_externals=flake8
11-
commands=flake8 hug
12-
py.test --cov-report html --cov hug -n auto tests
11+
commands=py.test --cov-report html --cov hug -n auto tests
1312

14-
[testenv:py37-marshmallow3]
13+
[testenv:py37-black]
1514
deps=
1615
-rrequirements/build_style_tools.txt
17-
marshmallow2: marshmallow <3.0
18-
marshmallow3: marshmallow >=3.0.0rc5
16+
marshmallow >=3.0.0rc5
1917

2018
whitelist_externals=flake8
19+
commands=black --check --verbose -l 100 hug
20+
21+
[testenv:py37-vulture]
22+
deps=
23+
-rrequirements/build_style_tools.txt
24+
marshmallow >=3.0.0rc5
25+
26+
whitelist_externals=flake8
27+
commands=vulture hug --min-confidence 100
28+
2129

30+
[testenv:py37-flake8]
31+
deps=
32+
-rrequirements/build_style_tools.txt
33+
marshmallow >=3.0.0rc5
34+
35+
whitelist_externals=flake8
2236
commands=flake8 hug
23-
py.test --cov-report html --cov hug -n auto tests
24-
black --check --verbose hug
25-
vulture hug --min-confidence 100
26-
bandit -r hug/ -ll
37+
38+
[testenv:py37-bandit]
39+
deps=
40+
-rrequirements/build_style_tools.txt
41+
marshmallow >=3.0.0rc5
42+
43+
whitelist_externals=flake8
44+
commands=bandit -r hug/ -ll
2745

2846
[testenv:pywin]
2947
deps =-rrequirements/build_windows.txt

0 commit comments

Comments
 (0)