8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 21:23:03 +01:00
firebird-mirror/extern/re2/kokoro/cmake.sh
Adriano dos Santos Fernandes 65f003da0d Import re2 version 2019-08-01.
2019-08-11 11:10:29 -03:00

26 lines
598 B
Bash

#!/bin/bash
set -eux
cd git/re2
case "${KOKORO_JOB_NAME}" in
*/windows-*)
CMAKE_G_A_FLAGS=('-G' 'Visual Studio 14 2015' '-A' 'x64')
;;
*)
CMAKE_G_A_FLAGS=()
# Work around a bug in older versions of bash. :/
set +u
;;
esac
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