forked from wildfoundry/dataplicity-lomond
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
42 lines (38 loc) · 936 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
[tox]
envlist = clean,py{27,35,36}{,-wsaccel},coverage
[testenv:clean]
deps = coverage
skip_install = true
whitelist_externals =
rm
find
commands =
find {toxinidir} -name '*.pyc' -delete
find {toxinidir} -name '__pycache__' -delete
coverage erase
rm -Rf {toxinidir}/reports
[testenv]
setenv = PYHONPATH={toxinidir}/tests
deps =
proxy.py
pytest
pytest-cov
pytest-mock
mocket
tornado==4.5.3
freezegun
wsaccel: wsaccel
usedevelop = true
commands = py.test -vv -s --cov-append --cov-config {toxinidir}/.coveragerc \
--cov={toxinidir}/lomond \
--cov-report html:{env:CIRCLE_ARTIFACTS:reports}/{envname} \
{posargs:tests/}
[testenv:coverage]
deps = coverage
coveralls
skip_install = true
setenv = COVERALLS_REPO_TOKEN = {env:COVERALLS_REPO_TOKEN:}
commands =
coverage html -d {env:CIRCLE_ARTIFACTS:reports}/combined
coverage report
coveralls