Improve Travis sample in the docs (#17420)
- printf is better than echo for multiline strings - ** should be && - use line continuation - Use multiline block
This commit is contained in:
parent
f1f31e3dfe
commit
f85da868ac
1 changed files with 4 additions and 3 deletions
|
@ -1405,11 +1405,12 @@ The main points that are implemented below:
|
||||||
- export CXXFLAGS="-std=c++11"
|
- export CXXFLAGS="-std=c++11"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if ! which spack >/dev/null; then
|
- |
|
||||||
|
if ! which spack >/dev/null; then
|
||||||
mkdir -p $SPACK_ROOT &&
|
mkdir -p $SPACK_ROOT &&
|
||||||
git clone --depth 50 https://github.com/spack/spack.git $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 **
|
printf "config:\n build_jobs: 2\n" > $SPACK_ROOT/etc/spack/config.yaml &&
|
||||||
echo -e "packages:""\n all:""\n target:"" ['x86_64']"
|
printf "packages:\n all:\n target: ['x86_64']\n" \
|
||||||
> $SPACK_ROOT/etc/spack/packages.yaml;
|
> $SPACK_ROOT/etc/spack/packages.yaml;
|
||||||
fi
|
fi
|
||||||
- travis_wait spack install cmake@3.7.2~openssl~ncurses
|
- travis_wait spack install cmake@3.7.2~openssl~ncurses
|
||||||
|
|
Loading…
Reference in a new issue