From: Alfredo Deza Date: Tue, 3 May 2016 12:34:36 +0000 (-0400) Subject: teuthology-docs: use build_utils X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4db8f25493e6d095b72580fffa5f9c2ccbba2da1;p=ceph-build.git teuthology-docs: use build_utils Signed-off-by: Alfredo Deza --- diff --git a/teuthology-docs/build/build b/teuthology-docs/build/build index 0d91c805..381c06d6 100644 --- a/teuthology-docs/build/build +++ b/teuthology-docs/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[@]" # create the docs build with tox -tox -rv -e docs +$VENV/tox -rv -e docs + # publish docs to http://docs.ceph.com/docs/teuthology rsync -auv --delete .tox/docs/tmp/html/* /var/teuthology/docs/