From a4de450bfaf2c600dccd9a5b3625c5a3ca279e7c Mon Sep 17 00:00:00 2001 From: Aaron Traas Date: Wed, 28 Jun 2017 14:35:17 -0400 Subject: [PATCH] Add make target for coverage --- .gitignore | 3 ++- .gitlab-ci.yml | 6 +----- Makefile | 5 +++++ 3 files changed, 8 insertions(+), 6 deletions(-) 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 + -- 2.31.1