]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
use local caching
authorAlfredo Deza <alfredo@deza.pe>
Wed, 15 Oct 2014 19:54:44 +0000 (15:54 -0400)
committerAlfredo Deza <alfredo@deza.pe>
Wed, 15 Oct 2014 19:54:44 +0000 (15:54 -0400)
Signed-off-by: Alfredo Deza <alfredo@deza.pe>
jjb/config/config

index cd16396e56bca7728da4be649034ec10c0ff632a..bc7c3fa10a11ae6d8e04c5f481315c9c85107abe 100644 (file)
@@ -9,8 +9,15 @@
 # Install Jenkins-jobs
 virtualenv venv
 . venv/bin/activate
-venv/bin/pip install jenkins-job-builder
-venv/bin/tox -rv -e docs
+
+$PIP_SDIST_INDEX=~/.cache/pip
+
+mkdir -p $PIP_SDIST_INDEX
+
+if ! venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index jenkins-job-builder; then
+    venv/bin/pip install --download-directory="$PIP_SDIST_INDEX" jenkins-job-builder
+    venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index jenkins-job-builder
+fi
 
 # Create the definitions testing them first
 venv/bin/jenkins-jobs test jjb/config/definitions -o output