X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=.gitlab-ci.yml;h=1dcb6c1867340ff7762e95a3c8a358093f28b64a;hp=13004d5f0bb7a24f76b44ccddbb7b25c1187d10a;hb=43aef9ceb16d0e2821c5ee81ea9d7c2f7ace84bb;hpb=f373d87ba7ca7b2011fe26ea81544daebfdf66fb diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 13004d5..1dcb6c1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,7 @@ image: alpine stages: - build - test + - deploy # build advent itself binary: @@ -15,6 +16,8 @@ binary: artifacts: paths: - advent + - "*.gcda" + - "*.gcno" # cache outputs to reduce the build time cache: paths: @@ -47,7 +50,24 @@ test: stage: test before_script: - apk update - - apk add make + - 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 + artifacts: + paths: + - coverage + +pages: + stage: deploy + script: + - mv coverage public + artifacts: + paths: + - public + only: + - master