-
Notifications
You must be signed in to change notification settings - Fork 30
/
tox.ini
55 lines (51 loc) · 1.01 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
[tox]
envlist =
py{34,35,36},
pypy{,3},
check,
docs,
coverage
skip_missing_interpreters =
true
[testenv]
# Default environment
deps =
-r{toxinidir}/requirements.txt
nose
commands =
nosetests
[testenv:coverage]
# Generates coverage report
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps =
-r{toxinidir}/requirements.txt
nose
coverage
coveralls
commands =
nosetests --with-coverage --cover-package=cwr
coveralls
[testenv:check]
# Checks code rules
deps =
-r{toxinidir}/requirements.txt
docutils
check-manifest
flake8
readme
commands =
python setup.py check --strict --metadata --restructuredtext
check-manifest {toxinidir}
#flake8 cwr
#flake8 data_cwr
#flake8 config_cwr
[testenv:docs]
# Validates the project docs
changedir =
docs/source
deps =
-r{toxinidir}/requirements.txt
sphinx
commands =
sphinx-build -b linkcheck ./ {envtmpdir}/html
sphinx-build -nW -b html -d {envtmpdir}/doctrees ./ {envtmpdir}/html