add python compatibility module
[multicloud/k8s.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 2e59345..dff3a8b 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,3 +1,12 @@
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2018
+# 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 = 1.6
 skipsdist = True
@@ -6,7 +15,7 @@ envlist = bashate
 [testenv]
 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
 usedevelop = False
-install_command = pip install {opts} {packages}
+install_command = pip install --no-cache-dir {opts} {packages}
 
 [testenv:bashate]
 deps =
@@ -14,12 +23,19 @@ deps =
    rstcheck
 whitelist_externals = bash
 commands = bash -c "find {toxinidir} -not -path {toxinidir}/.tox/\* \
+   -not -path {toxinidir}/pkg/dep/\* \
+   -not -path {toxinidir}/pkg/mod/\* \
+   -not -path {toxinidir}/src/k8splugin/vendor/\* \
+   -not -path {toxinidir}/src/github.com/\* \
    -name \*.sh -type f \
 # E006 check for lines longer than 79 columns
    -print0 | xargs -0 bashate -v -iE006"
-   bash -c "find {toxinidir} -not -path {toxinidir}/.tox/\* \
+   bash -c "find {toxinidir}/docs \
    -name \*.rst -type f -print0 | xargs -0 rstcheck --report warning"
 
 [testenv:docs]
-deps = sphinx
+deps =
+   -r{toxinidir}/docs/requirements-docs.txt
+   -chttps://git.onap.org/doc/plain/etc/upper-constraints.os.txt
+   -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
 commands = sphinx-build -W -b html docs docs/build/html