From 94c22092a804e4718fa3ed07d554c7b185878f3c Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Tue, 6 Mar 2018 06:49:43 +0100 Subject: Save sources in a mirror and cache it in Travis (#7392) --- share/spack/qa/run-build-tests | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'share') 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" -- cgit v1.2.3-70-g09d2