forked from snipsco/snips-nlu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (40 loc) · 1.3 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
[tox]
envlist = py27, py35, py36, py37, py38, integration-test, codecov, docs-html
[testenv]
skip_install = true
commands =
pip install -e ".[test]" --upgrade --upgrade-strategy eager
snips-nlu download-all-languages
snips-nlu download-language-entities fr
snips-nlu download-language-entities en
coverage run -m unittest discover
python snips_nlu_samples/sample.py
setenv=
LANG=en_US.UTF-8
PYTHONIOENCODING=UTF-8
[testenv:integration-test]
basepython = python3.6
skip_install = true
commands =
pip install -e ".[test]" --upgrade --upgrade-strategy eager
snips-nlu download-all-languages
python -m unittest discover -p 'linting_test*.py'
python -m unittest discover -p 'integration_test*.py'
[testenv:docs-html]
skip_install = true
deps = sphinx
whitelist_externals = sh
commands =
sh docs/check_doc.sh
pip install -e ".[test,doc]" --upgrade --upgrade-strategy eager
python -m unittest discover -p 'doctests.py'
python -m doctest README.rst
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