-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
39 lines (34 loc) · 1.02 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
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist =
lint
tests
docs
[testenv:lint]
skip_install = true
deps = -r {toxinidir}/requirements/lint.txt
commands = flake8
[testenv:tests]
skip_install = true
passenv =
TERM
deps = -r {toxinidir}/requirements/tests.txt
commands = pytest
[testenv:docs]
skip_install = true
setenv =
SPHINXOPTS = -b dirhtml
SOURCEDIR = {toxinidir}/docs/source
BUILDDIR = {envtmpdir}/build
deps = -r {toxinidir}/requirements/docs.txt
commands = sphinx-build -W -a -E {env:SPHINXOPTS} {env:SOURCEDIR} {env:BUILDDIR}
[testenv:live-docs]
skip_install = true
setenv =
{[testenv:docs]setenv}
WATCHDIRS = {toxinidir}/source/dialogflow_fulfillment
deps = {[testenv:docs]deps}
commands = sphinx-autobuild --watch {env:WATCHDIRS} {env:SPHINXOPTS} {env:SOURCEDIR} {env:BUILDDIR}