forked from weso/CWR-DataApi
/
tox.ini
53 lines (49 loc) · 1009 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
43
44
45
46
47
48
49
50
51
52
53
[tox]
envlist =
{py26,py27,pypy},
{py32,py33,py34,pypy3},
{docs},
{coverage}
skip_missing_interpreters =
true
[testenv]
deps =
-r{toxinidir}/requirements.txt
nose
commands =
nosetests
[testenv:coverage]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps =
-r{toxinidir}/requirements.txt
nose
coverage
coveralls
commands =
nosetests --with-coverage --cover-package=cwr
coverage combine
coverage report --omit=*test*
coveralls
[testenv:check]
deps =
-r{toxinidir}/requirements.txt
docutils
check-manifest
flake8
readme
pygments
commands =
python setup.py check --strict --metadata --restructuredtext
check-manifest {toxinidir}
flake8 cwr
flake8 data_cwr
flake8 config_cwr
[testenv:docs]
changedir =
docs/source
deps =
-r{toxinidir}/requirements.txt
sphinx
commands =
sphinx-build -b linkcheck ./ {envtmpdir}/html
sphinx-build -W -b html -d {envtmpdir}/doctrees ./ {envtmpdir}/html