mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
try to print coverage report in travis
This commit is contained in:
parent
7b3b68462e
commit
970f7af037
2 changed files with 12 additions and 1 deletions
|
@ -36,6 +36,8 @@ addons:
|
|||
- xdotool
|
||||
- fluxbox
|
||||
- gdb
|
||||
- gcov
|
||||
- lcov
|
||||
|
||||
compiler:
|
||||
- gcc
|
||||
|
@ -67,6 +69,7 @@ script:
|
|||
# to re-enable if xdotool is allowed.
|
||||
- make test-x
|
||||
- make test-x1
|
||||
# - make coverage-cli
|
||||
- gcov source/rofi.c
|
||||
- make distcheck
|
||||
|
||||
|
|
10
Makefile.am
10
Makefile.am
|
@ -351,11 +351,19 @@ $(rofi_SOURCES): $(top_builddir)/gitconfig.h
|
|||
.PHONY: coverage
|
||||
coverage: coverage/index.html
|
||||
|
||||
.PHONY: coverage-cli
|
||||
coverage-cli: coverage.info
|
||||
lcov -l $^
|
||||
coverage.info: $(top_builddir)/test/*.gcda $(top_builddir)/source/*.gcda $(top_builddir)/source/**/*.gcda
|
||||
lcov --capture --directory ./ --output-file coverage.info
|
||||
lcov --capture --directory $(top_builddir) --output-file coverage.info
|
||||
lcov -r $@ /usr/include/\* -o $@
|
||||
|
||||
coverage/index.html: coverage.info
|
||||
genhtml $^ --output-directory coverage/
|
||||
|
||||
.PHONY: coverage-clean
|
||||
coverage-clean:
|
||||
-rm -r coverage.info coverage/
|
||||
|
||||
.PHONY: .FORCE
|
||||
.FORCE:
|
||||
|
|
Loading…
Reference in a new issue