50 lines
1.1 KiB
INI
50 lines
1.1 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = slides
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython = python2
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
whitelist_externals =
|
|
bash
|
|
cp
|
|
mkdir
|
|
rm
|
|
sed
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:slides]
|
|
# New RST based environment for building slides
|
|
# Note: Resulting files will not be made available anywhere.
|
|
commands =
|
|
# Niceness test for doc directory
|
|
doc8 doc
|
|
# Build labs tar/zip files
|
|
mkdir -p publish-docs/trunk/training-guides
|
|
# Build training labs scripts
|
|
bash {toxinidir}/tools/generatelabs
|
|
bash {toxinidir}/tools/generateslides
|
|
|
|
[testenv:bashate_check]
|
|
commands =
|
|
# Bashate all scripts
|
|
bash -c "find labs/ -iname '*.sh' -print0 | xargs -0 bashate"
|
|
|
|
[doc8]
|
|
# Settings for doc8:
|
|
# File extensions to use
|
|
extension = .rst,.txt
|
|
ignore-path = doc/*/build/*
|
|
|
|
[testenv:upstream-slides]
|
|
commands =
|
|
# Niceness test
|
|
doc8 doc/upstream-training
|
|
# Build upstream-training slides
|
|
sphinx-build -b slides doc/upstream-training/source/ doc/upstream-training/build/slides
|