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 +