-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
42 lines (35 loc) · 1.05 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
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = build-py27, build-py36, lint, py27, py36
[base]
packages = 'taminsdk'
[testenv:build-py27]
commands =
python setup.py egg_info sdist bdist_wheel
deps = wheel
[testenv:build-py36]
commands =
python3 setup.py egg_info sdist bdist_wheel
deps = wheel
[testenv:lint]
commands =
flake8 --exit-zero {[base]packages}
deps =
flake8
[testenv:py27]
commands = nosetests tests --with-xcoverage --cover-erase --cover-html --cover-branches --cover-package={[base]packages} --with-xunit --xunit-file={toxinidir}/xunit.xml
deps =
enum34
nose
mock
nose-cov
nosexcover
[testenv:py36]
commands = nosetests tests --with-xcoverage --cover-erase --cover-html --cover-branches --cover-package={[base]packages} --with-xunit --xunit-file={toxinidir}/xunit.xml
deps =
nose
nose-cov
nosexcover