aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-07-08 12:53:43 +0200
committerGitHub <noreply@github.com>2019-07-08 12:53:43 +0200
commit44e150bd460a52e31f9714644f7664d1bc61405b (patch)
treed0bb6ea72d6110294fd6ffad06fb58b30df6396e /ci
parent71e0768e08ffe88be1ae0b8d1580df3ef3e0c059 (diff)
downloadrneovim-44e150bd460a52e31f9714644f7664d1bc61405b.tar.gz
rneovim-44e150bd460a52e31f9714644f7664d1bc61405b.tar.bz2
rneovim-44e150bd460a52e31f9714644f7664d1bc61405b.zip
ci: Travis: use minimum supported CMake in one job (#10445)
Diffstat (limited to 'ci')
-rwxr-xr-xci/before_install.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/ci/before_install.sh b/ci/before_install.sh
index ff2abc0e12..774c66d38f 100755
--- a/ci/before_install.sh
+++ b/ci/before_install.sh
@@ -46,3 +46,16 @@ fi
source ~/.nvm/nvm.sh
nvm install --lts
nvm use --lts
+
+if [[ -n "$CMAKE_URL" ]]; then
+ echo "Installing custom CMake: $CMAKE_URL"
+ curl --retry 5 --silent --fail -o /tmp/cmake-installer.sh "$CMAKE_URL"
+ mkdir -p "$HOME/.local/bin" /opt/cmake-custom
+ bash /tmp/cmake-installer.sh --prefix=/opt/cmake-custom --skip-license
+ ln -sfn /opt/cmake-custom/bin/cmake "$HOME/.local/bin/cmake"
+ cmake_version="$(cmake --version)"
+ echo "$cmake_version" | grep -qF '2.8.12' || {
+ echo "Unexpected CMake version: $cmake_version"
+ exit 1
+ }
+fi