From e047d2beeab79d3dc8ecf3e9c259cd73cb93a788 Mon Sep 17 00:00:00 2001 From: Rodrigo Queiro Date: Tue, 2 Mar 2021 09:59:36 +0100 Subject: [PATCH] Add layering_check to Bazel CI. This will avoid regressions on #596. --- .bazelci/presubmit.yml | 16 ++++++++++++++++ bazel/example/BUILD | 1 + 2 files changed, 17 insertions(+) diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 38e8515e9..ce36668e8 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -1,25 +1,41 @@ --- platforms: ubuntu1604: + build_flags: + - "--features=layering_check" build_targets: - "..." + test_flags: + - "--features=layering_check" test_targets: - "..." ubuntu1804: + build_flags: + - "--features=layering_check" build_targets: - "..." + test_flags: + - "--features=layering_check" test_targets: - "..." macos: + build_flags: + - "--features=layering_check" build_targets: - "..." + test_flags: + - "--features=layering_check" test_targets: - "..." windows: # Optional: use VS 2017 instead of 2015. environment: BAZEL_VC: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC" + build_flags: + - "--features=layering_check" build_targets: - "..." + test_flags: + - "--features=layering_check" test_targets: - "..." diff --git a/bazel/example/BUILD b/bazel/example/BUILD index 6b10e2b2f..05ab0f3e7 100644 --- a/bazel/example/BUILD +++ b/bazel/example/BUILD @@ -4,5 +4,6 @@ cc_test( srcs = ["main.cc"], deps = [ "//:glog", + "@com_github_gflags_gflags//:gflags", ], )