election/tox.ini
Tony Breeds 24c37f1010 Make all tools require python3 and remove python2 testing
Now that the last tool that needed python2 has been checked/fixed lets
remove all the python2 infrastructure and make all library users exit if
run under python2

Change-Id: I20184300f0a6cb6d230428cafc49f1b917376380
2018-12-12 14:09:05 +11:00

36 lines
965 B
INI

[tox]
envlist = docs,linters,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:linters]
commands = yamllint configuration.yaml
flake8
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = sphinx-build -v -W -b html -d doc/build/doctrees doc/source doc/build/html
[testenv:ci-checks-review]
commands = ci-check-all-candidate-files {posargs:--HEAD}
[testenv:ci-checks-election]
commands = ci-check-all-candidate-files
[flake8]
exclude=.tox,doc/source/conf.py