forked from phytec/doc-bsp-yocto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
30 lines (25 loc) · 751 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
[tox]
envlist = py3-html
skipsdist = true
[testenv]
deps =
-r requirements/build.txt
[testenv:py3-html]
commands =
sphinx-build -E -W --keep-going -b html source build/html -j auto
[testenv:py3-pdf]
allowlist_externals =
sh
commands =
# Builds are not only handled by sphinx, so we need to clean the build dir.
sh -c 'find build/latex -type f -delete 2>/dev/null || true'
sphinx-build -M latex source build -W --keep-going -j auto
sh -c 'make -C build/latex -j $(nproc) --keep-going LATEXMKOPTS="-silent"'
[testenv:py3-linkcheck]
commands =
sphinx-build -b linkcheck source build/linkcheck -j auto
[testenv:py3-spellcheck]
deps =
-r requirements/checks.txt
commands =
codespell source/ -I .codespellignore