-
Notifications
You must be signed in to change notification settings - Fork 136
/
tox.ini
37 lines (34 loc) · 883 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
[tox]
minversion = 3.18
envlist = build
skipsdist = true
[testenv]
deps =
lektor
setenv =
# Keep Lektor's private package cache in tox env rather than ~/.cache
XDG_CACHE_HOME = {envdir}/cache
LOCALAPPDATA = {envdir}/cache
[testenv:build]
commands =
lektor build -f webpack -O {envdir}/output
[testenv:htmltest]
# Build site and check links with htmltest
#
# By default, only internal links are checked.
#
# tox -e htmltest
#
# To test external links as well, try (warning: slow):
#
# HTMLTEST_OPTS="" tox -e htmltest
#
allowlist_externals =
bash
commands_pre =
# Install latest version of htmltest in the tox env
bash -c '[ -f {envbindir}/htmltest ] || \
curl -s https://htmltest.wjdp.uk | bash -s -- -b {envbindir}'
commands =
{[testenv:build]commands}
htmltest -c .htmltest.yml {env:HTMLTEST_OPTS:-s} {envdir}/output