#!/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

#!/bin/bash
set -eux

cd git/re2

bazel clean
bazel build --compilation_mode=dbg -- //:all
bazel test  --compilation_mode=dbg --test_output=errors -- //:all \
  -//:dfa_test \
  -//:exhaustive1_test \
  -//:exhaustive2_test \
  -//:exhaustive3_test \
  -//:exhaustive_test \
  -//:random_test

bazel clean
bazel build --compilation_mode=opt -- //:all
bazel test  --compilation_mode=opt --test_output=errors -- //:all \
  -//:dfa_test \
  -//:exhaustive1_test \
  -//:exhaustive2_test \
  -//:exhaustive3_test \
  -//:exhaustive_test \
  -//:random_test

exit 0

Switch from //... to //:all when building with Bazel.
Switch from //... to //:all when building with Bazel.

Change-Id: I7db5fec22d6942964e8ecd3bc6987c1b0190a206
Reviewed-on: https://code-review.googlesource.com/c/re2/+/43250
Reviewed-by: Paul Wankadia <62d4e38bb1380f055ec4b899baa75e52af09c5f7@google.com>
