projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Address GitLab issue #7: History note about Crowther's version
[open-adventure.git]
/
.gitlab-ci.yml
diff --git
a/.gitlab-ci.yml
b/.gitlab-ci.yml
index 13004d5f0bb7a24f76b44ccddbb7b25c1187d10a..1dcb6c1867340ff7762e95a3c8a358093f28b64a 100644
(file)
--- a/
.gitlab-ci.yml
+++ b/
.gitlab-ci.yml
@@
-3,6
+3,7
@@
image: alpine
stages:
- build
- test
stages:
- build
- test
+ - deploy
# build advent itself
binary:
# build advent itself
binary:
@@
-15,6
+16,8
@@
binary:
artifacts:
paths:
- advent
artifacts:
paths:
- advent
+ - "*.gcda"
+ - "*.gcno"
# cache outputs to reduce the build time
cache:
paths:
# cache outputs to reduce the build time
cache:
paths:
@@
-47,7
+50,24
@@
test:
stage: test
before_script:
- apk update
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
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