-
Notifications
You must be signed in to change notification settings - Fork 87
/
tox.ini
69 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
69
[tox]
envlist = py27,py34,py35,py36,py37,docs,docker
[testenv]
deps =
cov-core
coverage
execnet
pep8
py
pytest>=2.8.3
pytest-cache
pytest-cov
pytest-pep8
pytest-flakes
mock
passenv=TRAVIS*
setenv =
TOXINIDIR={toxinidir}
TOXDISTDIR={distdir}
sitepackages = False
whitelist_externals = env test
commands =
python --version
virtualenv --version
pip --version
pip freeze
py.test -rxs -vv --durations=10 --pep8 --flakes --blockage --cov-report term-missing --cov-report xml --cov-report html --cov-config {toxinidir}/.coveragerc --cov=wifi_survey_heatmap {posargs} wifi_survey_heatmap
# always recreate the venv
recreate = True
[testenv:docs]
# this really just makes sure README.rst will parse on pypi
passenv = TRAVIS* CONTINUOUS_INTEGRATION AWS* READTHEDOCS*
setenv =
TOXINIDIR={toxinidir}
TOXDISTDIR={distdir}
CI=true
deps =
docutils
pygments
sphinx
sphinx_rtd_theme
basepython = python3.6
commands =
python --version
virtualenv --version
pip --version
pip freeze
rst2html.py --halt=2 README.rst /dev/null
sphinx-apidoc wifi_survey_heatmap wifi_survey_heatmap/tests -o {toxinidir}/docs/source -e -f -M
# link check
# -n runs in nit-picky mode
# -W turns warnings into errors
sphinx-build -a -n -W -b linkcheck {toxinidir}/docs/source {toxinidir}/docs/build/html
# build
sphinx-build -a -n -W -b html {toxinidir}/docs/source {toxinidir}/docs/build/html
[testenv:docker]
passenv = TRAVIS* CONTINUOUS_INTEGRATION AWS* READTHEDOCS*
setenv =
TOXINIDIR={toxinidir}
TOXDISTDIR={distdir}
CI=true
commands =
bash build_docker.sh