-
Notifications
You must be signed in to change notification settings - Fork 108
/
tox.ini
68 lines (63 loc) · 1.62 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
65
66
67
68
[tox]
envlist = cov-init, py{34,35,36}, py36-functional, cov-report
[testenv]
usedevelop = true
changedir = cyphon
commands =
rm -f __init__.py
# use --keepdb to avoid OperationalError during teardown in case any
# db connections are still open from threads in TransactionTestCases
coverage run --rcfile={toxinidir}/.coveragerc manage.py test {posargs} --noinput --keepdb
basepython =
cov-init: python3.4
py34: python3.4
py35: python3.5
py36: python3.6
cov-report: python3.6
deps =
codecov
mock
-rrequirements.txt
setenv =
COVERAGE_FILE = {toxinidir}/.coverage.{envname}
FUNCTIONAL_TESTS_ENABLED = false
whitelist_externals = rm
alwayscopy = true
passenv = GEOIP_PATH
[testenv:cov-init]
commands = coverage erase
deps = coverage
setenv =
COVERAGE_FILE = {toxinidir}/.coverage
[testenv:cov-report]
commands =
coverage combine
coverage report -m
coverage xml -o {toxinidir}/coverage.xml
coveralls
codecov -f {toxinidir}/.coverage
python-codacy-coverage -r {toxinidir}/coverage.xml
setenv =
COVERAGE_FILE = {toxinidir}/.coverage
passenv = CI CODACY_PROJECT_TOKEN TRAVIS*
deps =
codacy-coverage
codecov
coveralls
[testenv:py36-functional]
changedir = cyphon
commands =
rm -f __init__.py
coverage run --rcfile={toxinidir}/.coveragerc manage.py test -p test_functional.py {posargs} --noinput --keepdb
whitelist_externals = rm
alwayscopy = true
setenv =
COVERAGE_FILE = {toxinidir}/.coverage.{envname}
FUNCTIONAL_TESTS_DRIVER = SAUCELABS
FUNCTIONAL_TESTS_ENABLED = true
passenv = DISPLAY SAUCE_* TRAVIS_*
[travis]
python =
3.4: cov-init, py34
3.5: py35
3.6: py36, py36-functional, cov-report