Skip to content
Snippets Groups Projects
Unverified Commit 94c22092 authored by Massimiliano Culpo's avatar Massimiliano Culpo Committed by GitHub
Browse files

Save sources in a mirror and cache it in Travis (#7392)

parent 4a7e88cc
No related branches found
No related tags found
No related merge requests found
...@@ -124,7 +124,10 @@ addons: ...@@ -124,7 +124,10 @@ addons:
- perl - perl
- perl-base - perl-base
cache: pip cache:
pip: true
directories:
- ~/.mirror
# Work around Travis's lack of support for Python on OSX # Work around Travis's lack of support for Python on OSX
before_install: before_install:
......
...@@ -11,6 +11,12 @@ ...@@ -11,6 +11,12 @@
. "$(dirname $0)/setup.sh" . "$(dirname $0)/setup.sh"
check_dependencies ${coverage} git hg svn 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 # Move to root directory of Spack
# Allows script to be run from anywhere # Allows script to be run from anywhere
cd "$SPACK_ROOT" cd "$SPACK_ROOT"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment