summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini44
1 files changed, 32 insertions, 12 deletions
diff --git a/tox.ini b/tox.ini
index 55a9e847..9f39a307 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,20 +1,35 @@
+##############################################################################
+# Copyright (c) 2019 opnfv.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
[tox]
minversion = 2.5
skipsdist = True
envlist =
pep8,
- py27,
- docs,
+ py35,
docs-linkcheck
[testenv]
-basepython=python2
+basepython=python3.5
usedevelop = True
-install_command = pip install -U {opts} {packages}
+install_command = pip3 install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
- py.test --basetemp={envtmpdir} --ignore=cvp {posargs}
+ py.test \
+ --basetemp={envtmpdir} \
+ --cov=dovetail \
+ --cov-report term-missing \
+ --cov-report xml \
+ --cov-fail-under=99.8 \
+ --ignore=cvp \
+ {posargs}
setenv =
VIRTUAL_ENV={envdir}
HOME = {envtmpdir}
@@ -24,20 +39,17 @@ whitelist_externals = wget
echo
[testenv:pep8]
-deps = flake8
+basepython = python3.5
commands = flake8 {toxinidir}
-[testenv:py27-cover]
-commands = python setup.py testr --coverage \
- --omit='{toxinidir}/dovetail/tests*' \
- --testr-args='{posargs}'
-
[flake8]
+basepython = python3.5
show-source = True
-ignore = E123,E125,H803,E722
+ignore = E123,E125,H803,E722,W503
exclude = .tox,dist,docs,*egg,build,.venv,.git
[testenv:docs]
+basepython = python3.6
deps = -rdocs/requirements.txt
commands =
sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
@@ -45,5 +57,13 @@ commands =
whitelist_externals = echo
[testenv:docs-linkcheck]
+basepython = python3.5
deps = -rdocs/requirements.txt
commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
+
+[testenv:yamllint]
+basepython = python3.5
+files =
+ etc
+commands =
+ yamllint -s {[testenv:yamllint]files}