Skip to content

Commit 5d71ba5

Browse files
committed
travis ci install cmake to a new directory
1 parent 2b5d0ff commit 5d71ba5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.travis.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ addons:
1515

1616
before_install:
1717
#travis ci has it's own version of cmake that we need to replace
18-
- sudo apt-get remove cmake
19-
- sudo apt-get install cmake
18+
- mkdir $HOME/usr
19+
- export PATH="$HOME/usr/bin:$PATH"
20+
- curl -sSL https://github.com/Kitware/CMake/releases/download/v3.18.3/cmake-3.18.3-Linux-x86_64.sh --output cmake-install.sh
21+
- chmod +x cmake-install.sh
22+
- ./cmake-install.sh --prefix=$HOME/usr --exclude-subdir --skip-license
2023

2124
install:
2225
- export CXX="g++-5" CC="gcc-5";

0 commit comments

Comments
 (0)