summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2020-04-28 09:54:02 -0700
committerGitHub <noreply@github.com>2020-04-28 11:54:02 -0500
commit7670ae468f0f3deea60efd52eb096d35f96896f9 (patch)
treee052361f5ab40c155cbf702924edb052af42ed4d
parent6e63ff1688e79878554a79b8d2132d4141cd1913 (diff)
downloadspack-7670ae468f0f3deea60efd52eb096d35f96896f9.tar.gz
spack-7670ae468f0f3deea60efd52eb096d35f96896f9.tar.bz2
spack-7670ae468f0f3deea60efd52eb096d35f96896f9.tar.xz
spack-7670ae468f0f3deea60efd52eb096d35f96896f9.zip
Docs: Limit Microarch on Travis CI (#16200)
Update the travis CI docs: limiting the microarch is essential for caching.
-rw-r--r--lib/spack/docs/workflows.rst12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/spack/docs/workflows.rst b/lib/spack/docs/workflows.rst
index 239ee55a6a..690d02d020 100644
--- a/lib/spack/docs/workflows.rst
+++ b/lib/spack/docs/workflows.rst
@@ -1358,6 +1358,14 @@ The main points that are implemented below:
the spack builds in the config.
(The Travis yaml parser is a bit buggy on the echo command.)
+#. Without control for the user, Travis jobs will run on various
+ ``x86_64`` microarchitectures. If you plan to cache build results,
+ e.g. to accelerate dependency builds, consider building for the
+ generic ``x86_64`` target only.
+ Limiting the microarchitecture will also find more packages when
+ working with the
+ `E4S Spack build cache <https://oaciss.uoregon.edu/e4s/e4s_buildcache_inventory.html>`_.
+
#. Builds over 10 minutes need to be prefixed with ``travis_wait``.
Alternatively, generate output once with ``spack install -v``.
@@ -1400,7 +1408,9 @@ The main points that are implemented below:
- if ! which spack >/dev/null; then
mkdir -p $SPACK_ROOT &&
git clone --depth 50 https://github.com/spack/spack.git $SPACK_ROOT &&
- echo -e "config:""\n build_jobs:"" 2" > $SPACK_ROOT/etc/spack/config.yaml;
+ echo -e "config:""\n build_jobs:"" 2" > $SPACK_ROOT/etc/spack/config.yaml **
+ echo -e "packages:""\n all:""\n target:"" ['x86_64']"
+ > $SPACK_ROOT/etc/spack/packages.yaml;
fi
- travis_wait spack install cmake@3.7.2~openssl~ncurses
- travis_wait spack install boost@1.62.0~graph~iostream~locale~log~wave