diff --git a/.travis.yml b/.travis.yml
index dd4c255af97d018e26d274ed0f11dcfeef250194..c3d65f0e638d64de0145f5ca6816ac306d730cb1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -124,7 +124,10 @@ addons:
       - perl
       - perl-base
 
-cache: pip
+cache:
+  pip: true
+  directories:
+    - ~/.mirror
 
 # Work around Travis's lack of support for Python on OSX
 before_install:
diff --git a/share/spack/qa/run-build-tests b/share/spack/qa/run-build-tests
index 56aa51542ed444d65fd3e2730cebc7bb4b70b3d2..5772632234ac1ecaade9a190dfe08f744428e7a0 100755
--- a/share/spack/qa/run-build-tests
+++ b/share/spack/qa/run-build-tests
@@ -11,6 +11,12 @@
 . "$(dirname $0)/setup.sh"
 check_dependencies ${coverage} git hg svn
 
+# Fetch the sources in a mirror, and add it to Spack
+mkdir -p ~/.mirror
+bin/spack mirror add travis ~/.mirror
+bin/spack mirror create -D -d ~/.mirror ${SPEC}
+
+
 # Move to root directory of Spack
 # Allows script to be run from anywhere
 cd "$SPACK_ROOT"