Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
feat: Package code files coverage into .tar
Browse files Browse the repository at this point in the history
The bazel rule `pkg_coverage` can package the folder `coverage`
into tar file, but it can't be called before run code coverage.

The code coverage result `/coverage` is hidden from git.
  • Loading branch information
howjmay committed Apr 24, 2019
1 parent 5fb0d5f commit b49d337
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ bazel*
cclient/bazel*
cclient/cmake-*

coverage

# Atom conf
.clang_complete

Expand Down
7 changes: 7 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")

pkg_tar(
name = "pkg_coverage",
srcs = glob(["coverage/*"]),
package_dir = "./coverage"
)

0 comments on commit b49d337

Please sign in to comment.