Skip to content

Commit 343bcdc

Browse files
committed
travis: install later cmake before build
Adapted from https://github.com/ldionne/hana/blob/master/.travis.yml#L177
1 parent 97d23a4 commit 343bcdc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ matrix:
5353
sources: &sources
5454
- ubuntu-toolchain-r-test
5555

56+
install:
57+
- |
58+
CMAKE_URL="https://cmake.org/files/v3.16/cmake-3.16.2-Linux-x86_64.tar.gz"
59+
mkdir cmake && travis_retry wget --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
60+
export PATH=$(realpath cmake/bin):${PATH}
61+
cmake --version
62+
5663
script:
5764
- mkdir build && cd build
5865
- cmake ../cpp11training

0 commit comments

Comments
 (0)