From: Aaron Traas Date: Wed, 28 Jun 2017 18:35:17 +0000 (-0400) Subject: Add make target for coverage X-Git-Tag: 1.1~33 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=a4de450bfaf2c600dccd9a5b3625c5a3ca279e7c;hp=d43854f0f6bb8e9eea7fbce80348150e7e7fc34d Add make target for coverage --- diff --git a/.gitignore b/.gitignore index b658e26..a99743d 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,5 @@ MANIFEST newdb.h newdb.c cheat -advent.info \ No newline at end of file +advent.info +coverage/* \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4553126..20e466b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/Makefile b/Makefile index 6e24549..d9436e0 100644 --- a/Makefile +++ b/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 +