diff options
author | Paul Wankadia <junyer@google.com> | 2019-01-31 08:43:31 -0800 |
---|---|---|
committer | Paul Wankadia <junyer@google.com> | 2019-01-31 16:44:25 +0000 |
commit | 4b787623c216c444b2ea295183ded7a100e1b593 (patch) | |
tree | 2e3f1faab1b5cd4d4bcf64592031f597da5a9b16 | |
parent | 99971d43e52e281faa1dbf43ccc07e8c26e55dd8 (diff) | |
download | regex-re2-4b787623c216c444b2ea295183ded7a100e1b593.tar.gz |
Use bash on Windows since Kokoro offers it.
Change-Id: Ied4073f8de5d2056da16b040612f239d2f05c9ce
Reviewed-on: https://code-review.googlesource.com/c/37952
Reviewed-by: Paul Wankadia <junyer@google.com>
-rwxr-xr-x | kokoro/macos-cmake.sh | 4 | ||||
-rwxr-xr-x | kokoro/windows-cmake.bat | 20 | ||||
-rwxr-xr-x | kokoro/windows-cmake.sh | 14 |
3 files changed, 18 insertions, 20 deletions
diff --git a/kokoro/macos-cmake.sh b/kokoro/macos-cmake.sh index dbe94cb..a87931f 100755 --- a/kokoro/macos-cmake.sh +++ b/kokoro/macos-cmake.sh @@ -5,10 +5,10 @@ cd git/re2 cmake -D CMAKE_BUILD_TYPE=Debug . cmake --build . --config Debug --clean-first -ctest -C Debug --output-on-failure -E dfa\|exhaustive\|random +ctest -C Debug --output-on-failure -E 'dfa|exhaustive|random' cmake -D CMAKE_BUILD_TYPE=Release . cmake --build . --config Release --clean-first -ctest -C Release --output-on-failure -E dfa\|exhaustive\|random +ctest -C Release --output-on-failure -E 'dfa|exhaustive|random' exit 0 diff --git a/kokoro/windows-cmake.bat b/kokoro/windows-cmake.bat index e926d88..90363bc 100755 --- a/kokoro/windows-cmake.bat +++ b/kokoro/windows-cmake.bat @@ -1,18 +1,2 @@ -CD git/re2 ^ - || EXIT /B 1 - -cmake -D CMAKE_BUILD_TYPE=Debug -G "Visual Studio 14 2015" -A x64 . ^ - || EXIT /B 1 -cmake --build . --config Debug --clean-first ^ - || EXIT /B 1 -ctest -C Debug --output-on-failure -E dfa^|exhaustive^|random ^ - || EXIT /B 1 - -cmake -D CMAKE_BUILD_TYPE=Release -G "Visual Studio 14 2015" -A x64 . ^ - || EXIT /B 1 -cmake --build . --config Release --clean-first ^ - || EXIT /B 1 -ctest -C Release --output-on-failure -E dfa^|exhaustive^|random ^ - || EXIT /B 1 - -EXIT /B 0 +bash git/re2/kokoro/windows-cmake.sh +EXIT /B %ERRORLEVEL% diff --git a/kokoro/windows-cmake.sh b/kokoro/windows-cmake.sh new file mode 100755 index 0000000..f43b2b3 --- /dev/null +++ b/kokoro/windows-cmake.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -eux + +cd git/re2 + +cmake -D CMAKE_BUILD_TYPE=Debug -G 'Visual Studio 14 2015' -A x64 . +cmake --build . --config Debug --clean-first +ctest -C Debug --output-on-failure -E 'dfa|exhaustive|random' + +cmake -D CMAKE_BUILD_TYPE=Release -G 'Visual Studio 14 2015' -A x64 . +cmake --build . --config Release --clean-first +ctest -C Release --output-on-failure -E 'dfa|exhaustive|random' + +exit 0 |