Skip to content

Commit be1ca6f

Browse files
committed
try downloading and installing last cmake version in travis
1 parent cdec9dc commit be1ca6f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,4 @@ matrix:
109109
# Build and check this project
110110
script:
111111
- eval "${MATRIX_EVAL}"
112-
- cmake --version
113112
- ./ci_build.sh

ci_build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ CPPZMQ=${PWD}/cppzmq-build
1212
# Travis machines have 2 cores
1313
JOBS=2
1414

15+
cmake_install() {
16+
wget -qO- "https://cmake.org/files/v3.20/cmake-3.20.5-linux-x86_64.tar.gz" \
17+
| tar --strip-components=1 -xz -C /tmp/cmake.root
18+
export PATH=/tmp/cmake.root/bin:$PATH
19+
cmake --version
20+
}
21+
1522
libzmq_install() {
1623
curl -L https://github.com/zeromq/libzmq/archive/v"${ZMQ_VERSION}".tar.gz \
1724
>zeromq.tar.gz
@@ -62,6 +69,8 @@ cppzmq_demo() {
6269
popd
6370
}
6471

72+
cmake_install
73+
6574
if [ "${ZMQ_VERSION}" != "" ] ; then libzmq_install ; fi
6675

6776
cppzmq_build

0 commit comments

Comments
 (0)