summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2016-11-04 18:30:34 +0100
committerLuke Meyer <lmeyer@redhat.com>2017-04-25 12:16:19 -0400
commit634a8957e1cc29374a170aaa8c2113b8fbbfe7e4 (patch)
tree77259f14c2dad7c14e6571de1dfe6dd7e51f74a7 /tox.ini
parentff8356b9266a4a6ec216e3aa31e6ff0408212975 (diff)
downloadopenshift-634a8957e1cc29374a170aaa8c2113b8fbbfe7e4.tar.gz
openshift-634a8957e1cc29374a170aaa8c2113b8fbbfe7e4.tar.bz2
openshift-634a8957e1cc29374a170aaa8c2113b8fbbfe7e4.tar.xz
openshift-634a8957e1cc29374a170aaa8c2113b8fbbfe7e4.zip
Add stub of preflight integration tests
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini8
1 files changed, 8 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 8678ff463..6755dc625 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,6 +3,7 @@ minversion=2.3.1
envlist =
py{27,35}-{flake8,pylint,unit}
py27-{yamllint,ansible_syntax,generate_validation}
+ integration
skipsdist=True
skip_missing_interpreters=True
@@ -13,6 +14,8 @@ deps =
-rtest-requirements.txt
py35-flake8: flake8-bugbear==17.3.0
+whitelist_externals = env
+
commands =
unit: pip install -e utils
unit: pytest {posargs}
@@ -22,3 +25,8 @@ commands =
generate_validation: python setup.py generate_validation
# TODO(rhcarvalho): check syntax of other important entrypoint playbooks
ansible_syntax: python setup.py ansible_syntax
+
+ # Unset GOPATH because tests use relative imports. This should be removed if
+ # we require openshift-ansible to live in a Go work space and use absolute
+ # imports in tests (desirable).
+ integration: env -u GOPATH go test -v ./test/integration/...