summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini19
1 files changed, 9 insertions, 10 deletions
diff --git a/tox.ini b/tox.ini
index a7daf22..7f2ef4f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,9 +1,10 @@
[tox]
-minversion = 2.0
-envlist = py27,py37,pep8
+minversion = 3.1.1
+envlist = py37,pep8
+ignore_basepython_conflict = True
[testenv]
-install_command = pip install {opts} {packages}
+basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
@@ -11,15 +12,16 @@ deps =
commands = stestr run --slowest {posargs}
[testenv:pep8]
-basepython = python3
commands = flake8
[testenv:docs]
-basepython = python3
-commands = python setup.py build_sphinx
+whitelist_externals =
+ rm
+commands =
+ rm -rf doc/build/html doc/build/doctrees
+ sphinx-build -W --keep-going -b html -d doc/build/doctrees doc/source doc/build/html
[testenv:cover]
-basepython = python3
setenv =
PYTHON=coverage run --source pycadf --parallel-mode
commands =
@@ -29,11 +31,9 @@ commands =
coverage xml -o cover/coverage.xml
[testenv:venv]
-basepython = python3
commands = {posargs}
[testenv:debug]
-basepython = python3
commands = oslo_debug_helper {posargs}
[flake8]
@@ -58,7 +58,6 @@ ignore = H405,D100,D101,D102,D103,D104,D105,D200,D202,D203,D204,D205,D208,D400,D
exclude = .tox,dist,doc,*.egg,build
[testenv:lower-constraints]
-basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt