xref: /aosp_15_r20/external/regex-re2/kokoro/bazel.sh (revision ccdc9c3e24c519bfa4832a66aa2e83a52c19f295)
1#!/bin/bash
2set -eux
3
4cd git/re2
5
6bazel clean
7bazel build --compilation_mode=dbg -- //...
8bazel test  --compilation_mode=dbg --test_output=errors -- //... \
9  -//:dfa_test \
10  -//:exhaustive1_test \
11  -//:exhaustive2_test \
12  -//:exhaustive3_test \
13  -//:exhaustive_test \
14  -//:random_test
15
16bazel clean
17bazel build --compilation_mode=opt -- //...
18bazel test  --compilation_mode=opt --test_output=errors -- //... \
19  -//:dfa_test \
20  -//:exhaustive1_test \
21  -//:exhaustive2_test \
22  -//:exhaustive3_test \
23  -//:exhaustive_test \
24  -//:random_test
25
26exit 0
27