forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up new repository and add coverage reports
* Remove duplicated .editorconfig * Introduce global style check to only run it once on CI * Make crosscompile optional -> build is green before they are finished. * Move crosscompile builds to the end so they are build last
- Loading branch information
Showing
9 changed files
with
52 additions
and
78 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Directories | ||
/.idea | ||
/build | ||
|
||
# Files | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
BUILD_DIR=build | ||
COVERAGE_DIR=${BUILD_DIR}/coverage | ||
|
||
# Runs testsuites for all beats | ||
testsuite: | ||
make -C filebeat testsuite | ||
make -C packetbeat testsuite | ||
make -C topbeat testsuite | ||
make -C winlogbeat testsuite | ||
make -C libbeat testsuite | ||
|
||
.PHONY: coverage-report | ||
coverage-report: | ||
mkdir -p ${COVERAGE_DIR} | ||
# Writes atomic mode on top of file | ||
echo 'mode: atomic' > ./${COVERAGE_DIR}/full.cov | ||
# Collects all coverage files and skips top line with mode | ||
-tail -q -n +2 ./filebeat/${COVERAGE_DIR}/*.cov >> ./${COVERAGE_DIR}/full.cov | ||
-tail -q -n +2 ./packetbeat/${COVERAGE_DIR}/*.cov >> ./${COVERAGE_DIR}/full.cov | ||
-tail -q -n +2 ./topbeat/${COVERAGE_DIR}/*.cov >> ./${COVERAGE_DIR}/full.cov | ||
-tail -q -n +2 ./winlogbeat/${COVERAGE_DIR}/*.cov >> ./${COVERAGE_DIR}/full.cov | ||
-tail -q -n +2 ./libbeat/${COVERAGE_DIR}/*.cov >> ./${COVERAGE_DIR}/full.cov | ||
go tool cover -html=./${COVERAGE_DIR}/full.cov -o ${COVERAGE_DIR}/full.html | ||
|
||
|
||
clean: | ||
make -C filebeat clean | ||
make -C packetbeat clean | ||
make -C topbeat clean | ||
make -C winlogbeat clean | ||
make -C libbeat clean | ||
|
||
check: | ||
make -C filebeat check | ||
make -C packetbeat check | ||
make -C topbeat check | ||
make -C winlogbeat check | ||
make -C libbeat check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.