Test CMake installation on Travis.

PiperOrigin-RevId: 278300416
This commit is contained in:
Victor Costan 2019-11-03 21:37:17 -08:00 committed by Victor Costan
parent 8f32e3fbc0
commit eb2eb73e6b
1 changed files with 2 additions and 0 deletions

View File

@ -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