#!/bin/bash
set -eux

cd git/re2

bazel clean
bazel build -- //...
bazel test  -- //... \
  -//:dfa_test \
  -//:exhaustive1_test \
  -//:exhaustive2_test \
  -//:exhaustive3_test \
  -//:exhaustive_test \
  -//:random_test

bazel clean
bazel build --compilation_mode=opt -- //...
bazel test  --compilation_mode=opt -- //... \
  -//: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 -- //...
bazel test  --compilation_mode=dbg -- //... \
  -//:dfa_test \
  -//:exhaustive1_test \
  -//:exhaustive2_test \
  -//:exhaustive3_test \
  -//:exhaustive_test \
  -//:random_test

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

exit 0

Tweak the CI script for Bazel on Ubuntu.
Tweak the CI script for Bazel on Ubuntu.

Change-Id: I5287b1173c456ea966c0521df9622d67fab16c70
Reviewed-on: https://code-review.googlesource.com/7218
Reviewed-by: Paul Wankadia <62d4e38bb1380f055ec4b899baa75e52af09c5f7@google.com>
