election/tox.ini
Ildiko Vancsa 04663fc490 Add docs jobs to the repo
Adding the jobs to build and publish docs from this repo to
docs.starlingx.org/election.

Depends-On: I5449d87ec8e76e26c39e3220f046c0ccfd0f255f
Change-Id: Ifd3afa8b9ea2640bcbcdc5e9f5d35922dd0f6c80
2019-05-15 14:27:57 +02:00

26 lines
726 B
INI

[tox]
envlist = docs,py35,py27
minversion = 2.0
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
# NOTE: If py35 fails with "db type could not be determined", delete
# .testrepository and try again. Running py35 before py27 is OK, but not the
# other way around. See: https://bugs.launchpad.net/testrepository/+bug/1212909
commands = stestr run --slowest {posargs}
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = sphinx-build -v -W -b html -d doc/build/doctrees doc/source doc/build/html
[flake8]
exclude=.tox,doc/source/conf.py