-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (44 loc) · 1 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
[tox]
envlist = live
[testenv]
deps = pipenv
basepython = python3
skip_install = true
passenv = TERM # To make terminal coloring / other variables pass through
commands =
echo '##############################################################################'
[testenv:{update,clean}]
deps = -rsite/requirements.txt
setenv =
# ENVVAR = true
# ENVVAR = {env:ENVVAR:}
passenv =
SKIP_CONTRIBUTE
SKIP_TEAM
whitelist_externals =
rm
echo
allowlist_externals =
echo
commands =
clean: rm -rf site/_build
sphinx-build -nW --keep-going -b {posargs:dirhtml} site/ site/_build/{posargs:dirhtml}
[testenv:live]
deps =
-rsite/requirements.txt
sphinx-autobuild
black
setenv =
# ENVVAR={env:ENVVAR:}
commands =
pwd
env
black site
sphinx-autobuild \
--re-ignore _build/.* \
--port 8000 \
-n -b {posargs:dirhtml} site/ site/_build/{posargs:dirhtml} \
--pre-build 'rm -Rf site/_build/{posargs:dirhtml}'
allowlist_externals =
pwd
env