Skip to content

Commit

Permalink
Add layering_check to Bazel CI.
Browse files Browse the repository at this point in the history
This will avoid regressions on #596.
  • Loading branch information
drigz committed Mar 2, 2021
1 parent 0863ad7 commit d4e8eba
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
@@ -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:
- "..."
1 change: 1 addition & 0 deletions bazel/example/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ cc_test(
srcs = ["main.cc"],
deps = [
"//:glog",
"@com_github_gflags_gflags//:gflags",
],
)

0 comments on commit d4e8eba

Please sign in to comment.