diff options
author | kasturiNarra <knarra@redhat.com> | 2019-11-22 15:30:29 +0530 |
---|---|---|
committer | Bala Konda Reddy M <bmekala@redhat.com> | 2019-11-22 16:29:43 +0000 |
commit | 915af4c84124ea4ac8c713404c672ff2087ae979 (patch) | |
tree | e97a6f5367025fc83ae09c02d619cea43b56e315 /tox.ini | |
parent | 0702c89a4ce4a613aa096e99aaa96398375c705c (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>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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"} |