summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Byrne <simonbyrne@gmail.com>2020-07-07 22:25:37 -0700
committerGitHub <noreply@github.com>2020-07-08 07:25:37 +0200
commitf85da868ac1db5f75fd0eb9d31e49a4c32bcdf82 (patch)
tree04245b0856cefce589269207b3d2ddf91546c19d /lib
parentf1f31e3dfe593abe09389ea2bcc249f165b55092 (diff)
downloadspack-f85da868ac1db5f75fd0eb9d31e49a4c32bcdf82.tar.gz
spack-f85da868ac1db5f75fd0eb9d31e49a4c32bcdf82.tar.bz2
spack-f85da868ac1db5f75fd0eb9d31e49a4c32bcdf82.tar.xz
spack-f85da868ac1db5f75fd0eb9d31e49a4c32bcdf82.zip
Improve Travis sample in the docs (#17420)
- printf is better than echo for multiline strings - ** should be && - use line continuation - Use multiline block
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/workflows.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/spack/docs/workflows.rst b/lib/spack/docs/workflows.rst
index 17ca695082..2f215f8209 100644
--- a/lib/spack/docs/workflows.rst
+++ b/lib/spack/docs/workflows.rst
@@ -1405,11 +1405,12 @@ The main points that are implemented below:
- export CXXFLAGS="-std=c++11"
install:
- - if ! which spack >/dev/null; then
+ - |
+ 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 "packages:""\n all:""\n target:"" ['x86_64']"
+ printf "config:\n build_jobs: 2\n" > $SPACK_ROOT/etc/spack/config.yaml &&
+ printf "packages:\n all:\n target: ['x86_64']\n" \
> $SPACK_ROOT/etc/spack/packages.yaml;
fi
- travis_wait spack install cmake@3.7.2~openssl~ncurses