summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2018-03-06 06:49:43 +0100
committerGitHub <noreply@github.com>2018-03-06 06:49:43 +0100
commit94c22092a804e4718fa3ed07d554c7b185878f3c (patch)
treeab275b2a714a54cfca00538b67a1922e16c3a3e9 /share
parent4a7e88cc711d249c3840f07ea184835f289b64eb (diff)
downloadspack-94c22092a804e4718fa3ed07d554c7b185878f3c.tar.gz
spack-94c22092a804e4718fa3ed07d554c7b185878f3c.tar.bz2
spack-94c22092a804e4718fa3ed07d554c7b185878f3c.tar.xz
spack-94c22092a804e4718fa3ed07d554c7b185878f3c.zip
Save sources in a mirror and cache it in Travis (#7392)
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/qa/run-build-tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/spack/qa/run-build-tests b/share/spack/qa/run-build-tests
index 56aa51542e..5772632234 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"