-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
44 lines (35 loc) · 1.02 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
[tox]
envlist = pep8,py27,py34,py35,py36,py37,bandit,docs
[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
coverage run --source=slugs/ --omit=slugs/tests/* -m pytest --strict slugs/tests/unit
coverage report -m
[testenv:integration]
# Note: this requires local or remote access to a SLUGS instance.
deps = {[testenv]deps}
basepython = python2.7
commands =
py.test --strict slugs/tests/integration {posargs}
[testenv:pep8]
commands = flake8 slugs/
[testenv:bandit]
commands = bandit -r slugs -n5
[testenv:docs]
changedir = docs
deps = -r{toxinidir}/doc-requirements.txt
basepython = python2.7
commands =
sphinx-build -j4 -T -W -b html -d {envtmpdir}/doctrees source {envtmpdir}/html
[testenv:docs-linkcheck]
changedir = docs
extras =
deps = {[testenv:docs]deps}
basepython = python2.7
commands =
sphinx-build -W -b linkcheck source {envtmpdir}/html
[coverage:report]
exclude_lines =
if __name__ == .__main__.: