forked from readthedocs/readthedocs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (44 loc) · 1.12 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
[tox]
envlist = py{27,36},lint,docs
skipsdist = True
[travis]
python =
2.7: py27
3.6: py36
[testenv]
setenv =
PYTHONPATH={toxinidir}/readthedocs:{toxinidir}
DJANGO_SETTINGS_MODULE=settings.test
LANG=C
DJANGO_SETTINGS_SKIP_LOCAL=True
deps = -r{toxinidir}/requirements/testing.txt
changedir = {toxinidir}/readthedocs
commands =
py.test {posargs}
[testenv:docs]
changedir = {toxinidir}/docs
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:lint]
deps = -r{toxinidir}/requirements/lint.txt
commands =
prospector \
--profile-path={toxinidir} \
--profile=prospector-more \
--die-on-tool-error {posargs}
prospector \
--profile-path={toxinidir} \
--profile=prospector \
--die-on-tool-error {posargs}
[testenv:eslint]
commands =
gulp lint
[testenv:coverage]
deps =
-r{toxinidir}/requirements/pip.txt
pytest-cov
whitelist_externals = echo
commands =
py.test --disable-pytest-warnings \
--cov-report=term --cov-report=html --cov=. {posargs}
echo Annotated HTML coverage report is in {toxinidir}/readthedocs/htmlcov/index.html