12
12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
- #
16
- # Test basic Bazel features
17
- #
18
- # NOTE: No empty lines should appear in this file before igncr is set!
19
- set -ex -o igncr || set -ex
20
-
21
- mkdir -p /var/local/git
22
- git clone /var/local/jenkins/grpc /var/local/git/grpc
23
- (cd /var/local/jenkins/grpc/ && git submodule foreach ' cd /var/local/git/grpc \
24
- && git submodule update --init --reference /var/local/jenkins/grpc/${name} \
25
- ${name}' )
26
- cd /var/local/git/grpc
27
15
28
16
# Build all basic targets using the strict warning option which leverages the
29
17
# clang compiler to check if sources can pass a set of warning options.
30
18
# For now //examples/android/binder/ are excluded because it needs Android
31
19
# SDK/NDK to be installed to build
32
- bazel build --define=use_strict_warning=true \
33
- -- \
34
- :all \
35
- //src/core/... \
36
- //src/compiler/... \
37
- //test/... \
38
- //examples/... \
39
- -//examples/android/binder/...
20
+ python3 tools/run_tests/python_utils/bazel_report_helper.py --report_path bazel_build_with_strict_warnings
21
+ bazel_build_with_strict_warnings/bazel_wrapper \
22
+ --bazelrc=tools/remote_build/include/test_locally_with_resultstore_results.bazelrc \
23
+ build \
24
+ --define=use_strict_warning=true \
25
+ -- \
26
+ :all \
27
+ //src/core/... \
28
+ //src/compiler/... \
29
+ //test/... \
30
+ //examples/... \
31
+ -//examples/android/binder/...
40
32
41
33
# TODO(veblush): Remove this test after migration to abseil-status is done.
42
- bazel build --define=use_strict_warning=true --define=use_abseil_status=true \
43
- -- \
44
- //src/core/... \
45
- //src/compiler/... \
46
- //test/...
34
+ python3 tools/run_tests/python_utils/bazel_report_helper.py --report_path bazel_build_with_abseil_status
35
+ bazel_build_with_abseil_status/bazel_wrapper \
36
+ --bazelrc=tools/remote_build/include/test_locally_with_resultstore_results.bazelrc \
37
+ build \
38
+ --define=use_strict_warning=true --define=use_abseil_status=true \
39
+ -- \
40
+ //src/core/... \
41
+ //src/compiler/... \
42
+ //test/...
47
43
48
44
# TODO(jtattersmusch): Adding a build here for --define=grpc_no_xds is not ideal
49
45
# and we should find a better place for this. Refer
@@ -56,6 +52,6 @@ EXIT_CODE=0
56
52
bazel build //test/cpp/end2end/xds:xds_end2end_test --define=grpc_no_xds=true || EXIT_CODE=$?
57
53
if [ $EXIT_CODE -eq 0 ]
58
54
then
59
- echo " Building xds_end2end_test succeeded even with --define=grpc_no_xds=true"
60
- exit 1
55
+ echo " Building xds_end2end_test succeeded even with --define=grpc_no_xds=true"
56
+ exit 1
61
57
fi
0 commit comments