From be1ca6f96030ff823da21255499d14316d264ab5 Mon Sep 17 00:00:00 2001 From: Alberto Invernizzi Date: Sun, 27 Jun 2021 18:56:54 +0200 Subject: [PATCH] try downloading and installing last cmake version in travis --- .travis.yml | 1 - ci_build.sh | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ae003a5..ea928bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -109,5 +109,4 @@ matrix: # Build and check this project script: - eval "${MATRIX_EVAL}" - - cmake --version - ./ci_build.sh diff --git a/ci_build.sh b/ci_build.sh index cb182c4..c58a53d 100755 --- a/ci_build.sh +++ b/ci_build.sh @@ -12,6 +12,13 @@ CPPZMQ=${PWD}/cppzmq-build # Travis machines have 2 cores JOBS=2 +cmake_install() { + wget -qO- "https://cmake.org/files/v3.20/cmake-3.20.5-linux-x86_64.tar.gz" \ + | tar --strip-components=1 -xz -C /tmp/cmake.root + export PATH=/tmp/cmake.root/bin:$PATH + cmake --version +} + libzmq_install() { curl -L https://github.com/zeromq/libzmq/archive/v"${ZMQ_VERSION}".tar.gz \ >zeromq.tar.gz @@ -62,6 +69,8 @@ cppzmq_demo() { popd } +cmake_install + if [ "${ZMQ_VERSION}" != "" ] ; then libzmq_install ; fi cppzmq_build