summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkasturiNarra <knarra@redhat.com>2019-11-22 15:30:29 +0530
committerBala Konda Reddy M <bmekala@redhat.com>2019-11-22 16:29:43 +0000
commit915af4c84124ea4ac8c713404c672ff2087ae979 (patch)
treee97a6f5367025fc83ae09c02d619cea43b56e315
parent0702c89a4ce4a613aa096e99aaa96398375c705c (diff)
Add possibility to run functional cases in py2/3 using tox
e.g: tox -e functional -- glusto -c config.yaml \ --pytest='-v -x tests -k test_foo' and tox -e functional3 -- glusto -c config.yaml \ --pytest='-v -x tests -k test_foo' Change-Id: I7ffd0beb5787b65a8e26a25a441ecc415f581df6 Signed-off-by: kasturiNarra <knarra@redhat.com>
-rw-r--r--tox.ini22
1 files changed, 22 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 4f59a14..1a5b9db 100644
--- a/tox.ini
+++ b/tox.ini
@@ -22,3 +22,25 @@ commands = pip install -e "git+https://github.com/loadtheaccumulator/glusto.git#
pip install -e {toxinidir}/glustolibs-misc
flake8 {toxinidir}
pylint -j 4 --rcfile={toxinidir}/.pylintrc {toxinidir}/tests/functional --ignore=nfs_ganesha
+
+[testenv:functional]
+basepython = python2.7
+commands =
+ python -m pip install --upgrade pip>=9.0.0 setuptools wheel
+ pip install \
+ git+git://github.com/loadtheaccumulator/glusto.git \
+ --editable=file:///{toxinidir}/glustolibs-gluster \
+ --editable=file:///{toxinidir}/glustolibs-io \
+ --editable=file:///{toxinidir}/glustolibs-misc
+ {posargs:bash -c "echo 'No commands have been specified. Exiting.'; exit 1"}
+
+[testenv:functional3]
+basepython = python3
+commands =
+ python3 -m pip install --upgrade pip>=9.0.0 setuptools wheel
+ pip3 install \
+ git+git://github.com/loadtheaccumulator/glusto.git@python3_port4 \
+ --editable=file:///{toxinidir}/glustolibs-gluster \
+ --editable=file:///{toxinidir}/glustolibs-io \
+ --editable=file:///{toxinidir}/glustolibs-misc
+ {posargs:bash -c "echo 'No commands have been specified. Exiting.'; exit 1"}