From eb2eb73e6bc4a56888eb24f45ae9d35fdb21e271 Mon Sep 17 00:00:00 2001 From: Victor Costan Date: Sun, 3 Nov 2019 21:37:17 -0800 Subject: [PATCH] Test CMake installation on Travis. PiperOrigin-RevId: 278300416 --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 3d179af..896147c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -79,6 +79,7 @@ before_script: - mkdir -p build && cd build - cmake .. -G Ninja -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSNAPPY_REQUIRE_${CPU_LEVEL}=ON -DSNAPPY_FUZZING_BUILD=${FUZZING} + -DCMAKE_INSTALL_PREFIX=$HOME/.local - cmake --build . - cd .. @@ -90,3 +91,4 @@ script: - if [ -f build/snappy_uncompress_fuzzer ]; then build/snappy_uncompress_fuzzer -runs=1000 -close_fd_mask=3; fi +- cd build && cmake --build . --target install