summaryrefslogtreecommitdiffstats
path: root/helm/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'helm/tox.ini')
-rw-r--r--helm/tox.ini76
1 files changed, 76 insertions, 0 deletions
diff --git a/helm/tox.ini b/helm/tox.ini
new file mode 100644
index 0000000..ca42099
--- /dev/null
+++ b/helm/tox.ini
@@ -0,0 +1,76 @@
+# ============LICENSE_START====================================================
+# =============================================================================
+# Copyright (c) 2020 AT&T Intellectual Property. All rights reserved.
+# Copyright (c) 2020 Pantheon.tech. All rights reserved.
+# =============================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END======================================================
+
+[tox]
+envlist = flake8,py27,py36,py37,py38
+skip_missing_interpreters = true
+
+[testenv:py27]
+deps =
+ # this fixes issue with tox installing coverage --pre
+ coverage==3.7.1
+ nose-cov
+ mock
+ testfixtures
+ nose
+ -rrequirements.txt
+
+[testenv:py36]
+deps =
+ coverage
+ nose-cov
+ mock
+ testfixtures
+ nose
+ -rrequirements.txt
+
+[testenv:py37]
+deps =
+ coverage
+ nose-cov
+ mock
+ testfixtures
+ nose
+ -rrequirements.txt
+
+[testenv:py38]
+deps =
+ coverage
+ nose-cov
+ mock
+ testfixtures
+ nose
+ -rrequirements.txt
+
+[testenv]
+passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
+
+# commands=nosetests --with-cov --cov-report term-missing --cov plugin plugin/tests
+# commands=nosetests --with-xunit --with-cov --cov-report=xml --cov plugin plugin/tests
+commands=nosetests --with-xunit --with-cov --cov-report=xml --cov plugin
+ coverage report
+ coverage html
+
+[flake8]
+ignore=E302,F401,E501,E712,F811,F841,E127,E128.W291
+
+[testenv:flake8]
+deps =
+ flake8
+ -rrequirements.txt
+commands=flake8 plugin