From 7670ae468f0f3deea60efd52eb096d35f96896f9 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Tue, 28 Apr 2020 09:54:02 -0700 Subject: Docs: Limit Microarch on Travis CI (#16200) Update the travis CI docs: limiting the microarch is essential for caching. --- lib/spack/docs/workflows.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lib') 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 `_. + #. 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 -- cgit v1.2.3-60-g2f50