Skip to content

Commit bded815

Browse files
committed
Use install.sh to install modern CMake on TravisCI
1 parent 776650c commit bded815

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313
- MPICH_GCC7_BOT_URL_HEAD="https://github.com/sourceryinstitute/OpenCoarrays/files/1956441/"
1414
- MPICH_BOT_URL_TAIL="mpich-3.2.1_1.high_sierra.bottle.1.tar.gz"
1515
- BUILD_TYPES="Debug RelWithDebInfo Release CodeCoverage"
16+
- PATH="${HOME}/.local/bin:$PATH"
1617
# matrix:
1718
# - GCC="6 7" OSX_PACKAGES="gcc@7 gcc@6 cmake shellcheck" BUILD_TYPE="cmake"
1819

developer-scripts/travis/install.linux.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ trap '__caf_err_report "${FUNCNAME:-.}" ${LINENO}' ERR
2121

2222
echo "Performing Travis-CI installation phase on Linux..."
2323

24+
echo "Installing CMake binaries using install.sh..."
25+
26+
./install.sh --package=cmake --install-prefix="${HOME}/.local"
27+
2428
if [[ "${BUILD_TYPE:-}" != InstallScript ]]; then # Ubuntu on Travis-CI, NOT testing install.sh
2529
if ! [[ -x "${HOME}/.local/bin/mpif90" && -x "${HOME}/.local/bin/mpicc" ]]; then
2630
# mpich install not cached

0 commit comments

Comments
 (0)