diff options
author | Valerii Ponomarov <vponomar@redhat.com> | 2018-05-03 20:19:32 +0530 |
---|---|---|
committer | Valerii Ponomarov <vponomar@redhat.com> | 2018-05-04 12:10:38 +0530 |
commit | 1bcacc76833953e7272ea0c9b5bd4ca735c0616d (patch) | |
tree | 15da54db2ad30f9a1a8e5428682dfc0e7eaf5a65 | |
parent | 55e396a9ed1ae935bf7ca77bf1e230b5e7c4dea5 (diff) |
Install latest pip for virtual environments
To avoid errors trying to install latest dependencies using
unexpected pip version.
It allows us to run tests on RHEL7.4
Also, update 'README' file with actual information about running
commands in venvs.
Change-Id: I154be92cbaa46b7169d2a259acdb05d50448d570
-rw-r--r-- | README | 10 | ||||
-rw-r--r-- | tox.ini | 28 |
2 files changed, 21 insertions, 17 deletions
@@ -4,12 +4,12 @@ Testing Install 'tox' package first: - $ pip install tox + $ pip install git+git://github.com/tox-dev/tox.git@2.9.1#egg=tox -Run all the tests (currently, it is only pep8 checks): +Run 'pep8' checks: - $ tox + $ tox -e pep8 -Run only 'pep8' checks: +Run 'functional' tests: - $ tox -e pep8 + $ tox -e functional -- glusto -c /path/to/config.yaml --pytest='-v -s tests' @@ -7,23 +7,27 @@ envlist = pep8 basepython = python2.7 setenv = VIRTUAL_ENV={envdir} whitelist_externals = * -commands = find . -type f -name "*.py[c|o]" -delete +commands = + find . -type f -name "*.py[c|o]" -delete + python -m pip install --upgrade pip>=9.0.0 setuptools wheel [testenv:pep8] -deps = -r{toxinidir}/test-requirements.txt -commands = flake8 {posargs} +commands = + {[testenv]commands} + pip install -r{toxinidir}/test-requirements.txt + flake8 {posargs} [testenv:functional] -deps = - rtyaml - ddt - git+git://github.com/loadtheaccumulator/glusto.git - git+git://github.com/gluster/glusto-tests.git#egg=glustolibs-gluster&subdirectory=glustolibs-gluster - git+git://github.com/gluster/glusto-tests.git#egg=glustolibs-io&subdirectory=glustolibs-io - git+git://github.com/gluster/glusto-tests.git#egg=glustolibs-misc&subdirectory=glustolibs-misc - --editable=file:///{toxinidir}/cns-libs commands = - find . -type f -name "*.py[c|o]" -delete + {[testenv]commands} + pip install \ + rtyaml \ + ddt \ + git+git://github.com/loadtheaccumulator/glusto.git \ + "git+git://github.com/gluster/glusto-tests.git#egg=glustolibs-gluster&subdirectory=glustolibs-gluster" \ + "git+git://github.com/gluster/glusto-tests.git#egg=glustolibs-io&subdirectory=glustolibs-io" \ + "git+git://github.com/gluster/glusto-tests.git#egg=glustolibs-misc&subdirectory=glustolibs-misc" \ + --editable=file:///{toxinidir}/cns-libs {posargs:bash -c "echo 'No commands have been specified. Exiting.'; exit 1"} [testenv:venv] |