-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathtox.ini
51 lines (42 loc) · 1.06 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
[tox]
;envlist = py27, py35, py36, flake8
envlist = py27, py35, py36
[travis]
python =
3.6: py36
3.5: py35
2.7: py27
[testenv:flake8]
basepython = python
deps = flake8
commands = flake8 etcd3
[flake8]
ignore = E501,E731
exlude = tests/
[testenv:py35]
deps = -r{toxinidir}/requirements_dev_py3.txt
[testenv:py36]
deps = -r{toxinidir}/requirements_dev_py3.txt
commands =
coverage run -m pytest --basetemp={envtmpdir} -s -v
coverage xml
codecov
python-codacy-coverage
[testenv:py27]
commands =
py.test --basetemp={envtmpdir} --ignore=tests/test_py3/
[testenv]
passenv = TOXENV CI TRAVIS TRAVIS_*
setenv =
PYTHONPATH = {toxinidir}
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
CODACY_PROJECT_TOKEN=8dd1fa5c30484aef8ab7165c625d2edc
deps =
-r{toxinidir}/requirements_dev.txt
commands =
coverage run -m pytest --basetemp={envtmpdir} -s -v
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following lines:
; deps =
; -r{toxinidir}/requirements.txt