• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2set -eux
3
4cd git/re2
5
6case "${KOKORO_JOB_NAME}" in
7  */windows-*)
8    CMAKE_G_A_FLAGS=('-G' 'Visual Studio 14 2015' '-A' 'x64')
9    ;;
10  *)
11    CMAKE_G_A_FLAGS=()
12    # Work around a bug in older versions of bash. :/
13    set +u
14    ;;
15esac
16
17cmake -D CMAKE_BUILD_TYPE=Debug "${CMAKE_G_A_FLAGS[@]}" .
18cmake --build . --config Debug --clean-first
19ctest -C Debug --output-on-failure -E 'dfa|exhaustive|random'
20
21cmake -D CMAKE_BUILD_TYPE=Release "${CMAKE_G_A_FLAGS[@]}" .
22cmake --build . --config Release --clean-first
23ctest -C Release --output-on-failure -E 'dfa|exhaustive|random'
24
25exit 0
26