aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Wankadia <junyer@google.com>2019-01-31 08:12:59 -0800
committerPaul Wankadia <junyer@google.com>2019-01-31 16:14:47 +0000
commit99971d43e52e281faa1dbf43ccc07e8c26e55dd8 (patch)
tree5f3ad1f6012889ac903d63158e4c2a9f03a5315e
parent98ad734aae9996a6dd1aa1fec72e800d621acd51 (diff)
downloadregex-re2-99971d43e52e281faa1dbf43ccc07e8c26e55dd8.tar.gz
Refactor the Bazel scripts.
Change-Id: Iab32c5bd319e7af527dca4736b10330ca2e8bc8c Reviewed-on: https://code-review.googlesource.com/c/37950 Reviewed-by: Paul Wankadia <junyer@google.com>
-rwxr-xr-xkokoro/bazel.sh (renamed from kokoro/windows-bazel.sh)0
-rwxr-xr-xkokoro/macos-bazel.sh26
-rwxr-xr-xkokoro/ubuntu-bazel.sh26
-rwxr-xr-xkokoro/windows-bazel.bat2
4 files changed, 5 insertions, 49 deletions
diff --git a/kokoro/windows-bazel.sh b/kokoro/bazel.sh
index 6f25982..6f25982 100755
--- a/kokoro/windows-bazel.sh
+++ b/kokoro/bazel.sh
diff --git a/kokoro/macos-bazel.sh b/kokoro/macos-bazel.sh
index 6f25982..e43c852 100755
--- a/kokoro/macos-bazel.sh
+++ b/kokoro/macos-bazel.sh
@@ -1,26 +1,4 @@
#!/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
+bash git/re2/kokoro/bazel.sh
+exit $?
diff --git a/kokoro/ubuntu-bazel.sh b/kokoro/ubuntu-bazel.sh
index 6f25982..e43c852 100755
--- a/kokoro/ubuntu-bazel.sh
+++ b/kokoro/ubuntu-bazel.sh
@@ -1,26 +1,4 @@
#!/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
+bash git/re2/kokoro/bazel.sh
+exit $?
diff --git a/kokoro/windows-bazel.bat b/kokoro/windows-bazel.bat
index 7a7cefe..283f8d2 100755
--- a/kokoro/windows-bazel.bat
+++ b/kokoro/windows-bazel.bat
@@ -1,2 +1,2 @@
-bash git/re2/kokoro/windows-bazel.sh
+bash git/re2/kokoro/bazel.sh
EXIT /B %ERRORLEVEL%