Skip to content

Commit 8b6665d

Browse files
authored
Added Makefile with bazel wrappers [BUILD-360] (#1289)
* Added Makefile with bazel wrappers [BUILD-360] * Add .clang-format config to bazel * Updated rules_swiftnav * Remove clang-format from bazel config
1 parent cef433c commit 8b6665d

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
build --action_env=BAZEL_CXXOPTS='-std=c++14'
2+
3+
build:clang-tidy --aspects @rules_swiftnav//clang_tidy:clang_tidy.bzl%clang_tidy_aspect
4+
build:clang-tidy --output_groups=report

WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
44

55
http_archive(
66
name = "rules_swiftnav",
7-
strip_prefix = "rules_swiftnav-b80ca392ea24a14f8d810380b14495680255903b",
8-
url = "https://github.com/swift-nav/rules_swiftnav/archive/b80ca392ea24a14f8d810380b14495680255903b.tar.gz",
7+
strip_prefix = "rules_swiftnav-edb32932741b965bde9816fa85c05f2fb3d2699a",
8+
url = "https://github.com/swift-nav/rules_swiftnav/archive/edb32932741b965bde9816fa85c05f2fb3d2699a.tar.gz"
99
)
1010

1111
http_archive(

c/Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
do-all-unit-tests:
2+
bazel test --test_tag_filters=unit --test_output=all //...
3+
4+
do-all-integration-tests:
5+
bazel test --test_tag_filters=integration --test_output=all //...
6+
7+
clang-tidy-all-check:
8+
bazel build //... --config=clang-tidy
9+
10+
do-code-coverage:
11+
bazel coverage --test_tag_filters=unit --collect_code_coverage --combined_report=lcov //...
12+
13+
do-generate-coverage-report: do-code-coverage
14+
genhtml bazel-out/_coverage/_coverage_report.dat -o coverage

0 commit comments

Comments
 (0)