Skip to content

Commit a872a7d

Browse files
committed
travis-ci: build gtest without elevated privileges
1 parent 2c04768 commit a872a7d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ addons:
99
- libhdf4-dev
1010

1111
install:
12-
- cd /usr/src/gtest
13-
- cmake .
14-
- make install --jobs=$(nproc)
12+
- mkdir gtest
13+
- cd gtest
14+
- cmake /usr/src/gtest
15+
- make --jobs=$(nproc)
16+
- cd ..
1517

1618
script:
17-
- cmake .
19+
# https://cmake.org/cmake/help/v3.12/module/FindGTest.html
20+
- GTEST_ROOT="$PWD/gtest" cmake .
1821
- make --jobs=$(nproc)
1922
- tests/hdf4cpp-tests

0 commit comments

Comments
 (0)