blob: 7e355f85573d84348915bbac23c5262921d68ce7 [file] [log] [blame]
set -eux
cd git/re2
case "${KOKORO_JOB_NAME}" in
export PATH+=':/cygdrive/c/Program Files/CMake/bin'
# Pin to Visual Studio 2015, which is the minimum that we support.
CMAKE_G_A_FLAGS=('-G' 'Visual Studio 14 2015' '-A' 'x64')
# Work around a bug in older versions of bash. :/
set +u
cmake -D CMAKE_BUILD_TYPE=Debug "${CMAKE_G_A_FLAGS[@]}" .
cmake --build . --config Debug --clean-first
ctest -C Debug --output-on-failure -E 'dfa|exhaustive|random'
cmake -D CMAKE_BUILD_TYPE=Release "${CMAKE_G_A_FLAGS[@]}" .
cmake --build . --config Release --clean-first
ctest -C Release --output-on-failure -E 'dfa|exhaustive|random'
exit 0