try downloading and installing last cmake version in travis

This commit is contained in:
Alberto Invernizzi 2021-06-27 18:56:54 +02:00
parent cdec9dca0c
commit be1ca6f960
2 changed files with 9 additions and 1 deletions

View File

@ -109,5 +109,4 @@ matrix:
# Build and check this project
script:
- eval "${MATRIX_EVAL}"
- cmake --version
- ./ci_build.sh

View File

@ -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