From: Alfredo Deza Date: Tue, 3 May 2016 13:08:42 +0000 (-0400) Subject: ceph-qa-suite-pull-requests: use build_utils X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b29cda65948810d906c636e2bf8751206962acb8;p=ceph-build.git ceph-qa-suite-pull-requests: use build_utils Signed-off-by: Alfredo Deza --- diff --git a/ceph-qa-suite-pull-requests/build/build b/ceph-qa-suite-pull-requests/build/build index 5fba4e3c9..d1bd1238a 100644 --- a/ceph-qa-suite-pull-requests/build/build +++ b/ceph-qa-suite-pull-requests/build/build @@ -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