-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
45 lines (35 loc) · 858 Bytes
/
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
[tox]
#envlist=begin, py27, py35, py37, end, flake8, pycodestyle
envlist=py27, py35, py37
skip_missing_interpreters = True
[testenv]
deps=coverage
pytest-cov
pytest
mock
commands=
coverage run --append setup.py test --pytest-args --junitxml=junit-{envname}.xml
coverage report --omit='.tox/*,.eggs/*'
[testenv:begin]
commands=coverage erase
[testenv:flake8]
deps=
flake8
commands=flake8 --select=F,E9 --exclude=vendor {posargs:sqtray}
[testenv:pycodestyle]
deps=
pycodestyle
commands=pycodestyle --max-line-length=120 {posargs:sqtray}
[testenv:py26-novendor]
sitepackages=True
deps=
[testenv:py27-novendor]
sitepackages=True
deps=
[testenv:py34-novendor]
sitepackages=True
deps=
[testenv:end]
commands=
coverage report --omit='.tox/*,.eggs/*' --show-missing
coverage html --omit='.tox/*,.eggs/*' --fail-under=50