forked from snipsco/snips-nlu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
43 lines (37 loc) · 1.04 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
[tox]
envlist = py27, py34, py35, py36, integration-test, sample-test, codecov, docs-html
[testenv]
skip_install = true
commands =
pip install -e ".[test]"
coverage run -m unittest discover
setenv=
LANG=en_US.UTF-8
PYTHONIOENCODING=UTF-8
[testenv:integration-test]
basepython = python3.6
skip_install = true
commands =
pip install -e ".[test,integration_test]"
python -m unittest discover -p 'linting_test*.py'
python -m unittest discover -p 'integration_test*.py'
[testenv:sample-test]
basepython = python3.6
skip_install = true
commands =
pip install -e ".[test]"
python -m unittest discover -p 'samples_test*.py'
[testenv:docs-html]
skip_install = true
deps = sphinx
commands =
pip install -e ".[doc]"
sphinx-build -W -b html -d {envtmpdir}/doctrees docs/source {envtmpdir}/html
# Uses default basepython otherwise reporting doesn't work on Travis where
# Python 3.6 is only available in 3.6 jobs.
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report