forked from writethedocs/www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
45 lines (37 loc) · 967 Bytes
/
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
[tox]
envlist = docs, yaml, lint, links
skipsdist = True
[travis]
python =
3.6: docs, yaml, lint, links
[travis:env]
TEST=
lint: lint
docs: docs
yaml: yaml
links: links
[testenv]
deps = -rrequirements.txt
[testenv:docs]
changedir = {toxinidir}/docs
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:lint]
changedir = {toxinidir}/docs
whitelist_externals = vale
commands =
vale --glob='!_data/*' .
[testenv:yaml]
changedir = {toxinidir}/docs
whitelist_externals = yamllint
commands =
yamllint -c ../.yamllint.yaml _data
bash _scripts/validate-yaml.sh
[testenv:links]
changedir = {toxinidir}/docs
whitelist_externals = htmlproofer
gem
commands =
gem install html-proofer
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
htmlproofer {envtmpdir}/html --alt-ignore '/.*/' --file-ignore '/2013/','/2014'/,'/2015/' --url-ignore '/video/' --allow-hash-href