forked from release-engineering/pubtools-pulplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
64 lines (55 loc) · 1.18 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[tox]
envlist = py27,py36,static,pidiff,docs,revdep-pubtools-pulp
[testenv]
deps=-rtest-requirements.txt
commands=pytest -v {posargs}
whitelist_externals=sh
[testenv:py27]
deps=
# Note: we need to explicitly list requirements.txt here
# so it's processed at the same time as the constraints file
-rrequirements.txt
-cconstraints-legacy.txt
-rtest-requirements.txt
[testenv:static]
deps=
-rtest-requirements.txt
black
pylint
commands=
black --check .
sh -c 'pylint pubtools; test $(( $? & (1|2|4|32) )) = 0'
[testenv:pidiff]
deps=pidiff
skip_install=true
commands=pidiff pubtools-pulplib .
[testenv:cov]
deps=
-rtest-requirements.txt
pytest-cov
usedevelop=true
commands=
pytest --cov-report=html --cov=pubtools {posargs}
[testenv:cov-travis]
passenv = TRAVIS TRAVIS_*
deps=
-rtest-requirements.txt
pytest-cov
coveralls
usedevelop=true
commands=
pytest --cov=pubtools {posargs}
coveralls
[testenv:revdep-pubtools-pulp]
usedevelop=true
whitelist_externals=sh
commands=sh -c 'scripts/revdep-test https://github.com/release-engineering/pubtools-pulp.git'
[testenv:docs]
deps=
sphinx
alabaster
use_develop=true
commands=
sphinx-build -M html docs docs/_build
[pytest]
testpaths = tests