]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-qa-suite-pull-requests: use build_utils
authorAlfredo Deza <adeza@redhat.com>
Tue, 3 May 2016 13:08:42 +0000 (09:08 -0400)
committerAlfredo Deza <adeza@redhat.com>
Tue, 3 May 2016 13:08:42 +0000 (09:08 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-qa-suite-pull-requests/build/build

index 5fba4e3c9cfed1335b72ca1c44ce7f6cfa2e0bcd..d1bd1238ac9d39b1f79c6eca2bbc02acfd52c012 100644 (file)
@@ -2,23 +2,12 @@
 
 set -ex
 
-# Create the virtualenv
-virtualenv venv
-. venv/bin/activate
-
-# Define and ensure the PIP cache
-PIP_SDIST_INDEX="$HOME/.cache/pip"
-mkdir -p $PIP_SDIST_INDEX
-
-# Install the package by trying with the cache first, otherwise doing a download only, and then
-# trying to install from the cache again.
-if ! venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index tox; then
-    venv/bin/pip install --download-directory="$PIP_SDIST_INDEX" tox
-    venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index tox
-fi
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "tox" )
+install_python_packages "pkgs[@]"
 
 
 # run tox by recreating the environment and in verbose mode
 # by default this will run all environments defined, although currently
 # it is just flake8
-tox -rv
+$VENV/tox -rv