aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Wankadia <junyer@google.com>2019-01-29 08:23:47 -0800
committerPaul Wankadia <junyer@google.com>2019-01-29 16:26:54 +0000
commit98ad734aae9996a6dd1aa1fec72e800d621acd51 (patch)
tree3b9122b80317cb699fc034fb17a5db14bd684496
parenta8176127eebcfef98db8ef9a22d1fa708b196e7c (diff)
downloadregex-re2-98ad734aae9996a6dd1aa1fec72e800d621acd51.tar.gz
Try using bash on Windows since Kokoro offers it.
Change-Id: I8316a43a724bf130c3b3d4eefea427bf1ee41d4b Reviewed-on: https://code-review.googlesource.com/c/37910 Reviewed-by: Paul Wankadia <junyer@google.com>
-rwxr-xr-xkokoro/windows-bazel.bat32
-rwxr-xr-xkokoro/windows-bazel.sh26
2 files changed, 28 insertions, 30 deletions
diff --git a/kokoro/windows-bazel.bat b/kokoro/windows-bazel.bat
index 9ac3d5b..7a7cefe 100755
--- a/kokoro/windows-bazel.bat
+++ b/kokoro/windows-bazel.bat
@@ -1,30 +1,2 @@
-CD git/re2 ^
- || EXIT /B 1
-
-bazel clean ^
- || EXIT /B 1
-bazel build --compilation_mode=dbg -- //... ^
- || EXIT /B 1
-bazel test --compilation_mode=dbg --test_output=errors -- //... ^
- -//:dfa_test ^
- -//:exhaustive1_test ^
- -//:exhaustive2_test ^
- -//:exhaustive3_test ^
- -//:exhaustive_test ^
- -//:random_test ^
- || EXIT /B 1
-
-bazel clean ^
- || EXIT /B 1
-bazel build --compilation_mode=opt -- //... ^
- || EXIT /B 1
-bazel test --compilation_mode=opt --test_output=errors -- //... ^
- -//:dfa_test ^
- -//:exhaustive1_test ^
- -//:exhaustive2_test ^
- -//:exhaustive3_test ^
- -//:exhaustive_test ^
- -//:random_test ^
- || EXIT /B 1
-
-EXIT /B 0
+bash git/re2/kokoro/windows-bazel.sh
+EXIT /B %ERRORLEVEL%
diff --git a/kokoro/windows-bazel.sh b/kokoro/windows-bazel.sh
new file mode 100755
index 0000000..6f25982
--- /dev/null
+++ b/kokoro/windows-bazel.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+set -eux
+
+cd git/re2
+
+bazel clean
+bazel build --compilation_mode=dbg -- //...
+bazel test --compilation_mode=dbg --test_output=errors -- //... \
+ -//:dfa_test \
+ -//:exhaustive1_test \
+ -//:exhaustive2_test \
+ -//:exhaustive3_test \
+ -//:exhaustive_test \
+ -//:random_test
+
+bazel clean
+bazel build --compilation_mode=opt -- //...
+bazel test --compilation_mode=opt --test_output=errors -- //... \
+ -//:dfa_test \
+ -//:exhaustive1_test \
+ -//:exhaustive2_test \
+ -//:exhaustive3_test \
+ -//:exhaustive_test \
+ -//:random_test
+
+exit 0