Explorar el Código

travis-ci: build gtest without elevated privileges

Fabian Peter Hammerle hace 6 años
padre
commit
a872a7dfb5
Se han modificado 1 ficheros con 7 adiciones y 4 borrados
  1. 7 4
      .travis.yml

+ 7 - 4
.travis.yml

@@ -9,11 +9,14 @@ addons:
     - libhdf4-dev
 
 install:
-- cd /usr/src/gtest
-- cmake .
-- make install --jobs=$(nproc)
+- mkdir gtest
+- cd gtest
+- cmake /usr/src/gtest
+- make --jobs=$(nproc)
+- cd ..
 
 script:
-- cmake .
+# https://cmake.org/cmake/help/v3.12/module/FindGTest.html
+- GTEST_ROOT="$PWD/gtest" cmake .
 - make --jobs=$(nproc)
 - tests/hdf4cpp-tests