diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-12-31 12:51:07 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-12-31 12:51:07 +0100 |
| commit | 70b2a9e855f21689ee5ba5436f729f5950760a72 (patch) | |
| tree | 38de5d92e5df35a1fac83ec1cab78212406f5daf | |
| parent | c5499485c222520773e6b48c0345f2d7b09c9015 (diff) | |
Makefile: collect coverage report for codecov.io
| -rw-r--r-- | .travis.yml | 3 | ||||
| -rw-r--r-- | Makefile | 6 | ||||
| -rw-r--r-- | README.md | 6 |
3 files changed, 14 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index ee01dabf8..f3a9aeda8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,6 +24,9 @@ script: - make install_prerequisites - make presubmit +after_success: + - bash <(curl -s https://codecov.io/bash) + # If the build fails because some code in not formatted, it's nice to see the diffs after formatting. after_failure: - git diff --name-only @@ -302,8 +302,14 @@ presubmit: presubmit_parallel: test test_race arch check_links test: +ifeq ("$(TRAVIS)$(shell go version | grep 1.9)", "") # Executor tests use cgo. env CGO_ENABLED=1 $(GO) test -short ./... +else + # Collect coverage report for codecov.io when running on travis (uploaded in .travis.yml). + # Note: Go 1.9 does not support -coverprofile when testing multiple packages. + env CGO_ENABLED=1 $(GO) test -short -coverprofile=coverage.txt ./... +endif test_race: $(GO) test -race; if test $$? -ne 2; then \ @@ -1,6 +1,10 @@ # syzkaller - kernel fuzzer -[](https://travis-ci.org/google/syzkaller) [](https://goreportcard.com/report/github.com/google/syzkaller) [](LICENSE) +[](https://travis-ci.org/google/syzkaller) +[](https://goreportcard.com/report/github.com/google/syzkaller) +[](https://codecov.io/gh/google/syzkaller) +[](https://godoc.org/github.com/google/syzkaller) +[](LICENSE) `syzkaller` is an unsupervised coverage-guided kernel fuzzer. `Linux` kernel fuzzing has the most support, `akaros`, `freebsd`, `fuchsia`, `netbsd`, `windows` and `gvisor` are supported to varying degrees. |
