Add make target for coverage
This commit is contained in:
parent
d43854f0f6
commit
a4de450bfa
3 changed files with 8 additions and 6 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -13,4 +13,5 @@ MANIFEST
|
|||
newdb.h
|
||||
newdb.c
|
||||
cheat
|
||||
advent.info
|
||||
advent.info
|
||||
coverage/*
|
|
@ -88,11 +88,7 @@ test:debug:
|
|||
- apk add make gcc
|
||||
- apk add lcov --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
|
||||
script:
|
||||
- cd tests
|
||||
- make
|
||||
- cd ..
|
||||
- lcov -t "advent" -o advent.info -c -d .
|
||||
- genhtml -o coverage advent.info
|
||||
- make coverage
|
||||
artifacts:
|
||||
paths:
|
||||
- coverage
|
||||
|
|
5
Makefile
5
Makefile
|
@ -152,3 +152,8 @@ linty: advent
|
|||
debug: CCFLAGS += -O0 --coverage -ggdb
|
||||
debug: linty
|
||||
debug: cheat
|
||||
|
||||
coverage: debug check
|
||||
lcov -t "advent" -o advent.info -c -d .
|
||||
genhtml -o coverage/ advent.info
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue