stage: build
before_script:
- apk update
- - apk add make gcc musl-dev
- script:
+ - apk add make gcc musl-dev python libedit-dev
+ - pip install PyYAML
+ script:
- make debug
artifacts:
paths:
- advent
+ - cheat
- "*.gcda"
- "*.gcno"
# cache outputs to reduce the build time
stage: build
before_script:
- apk update
- - apk add make gcc musl-dev
- script:
- - make advent
+ - apk add make gcc musl-dev python libedit-dev
+ - pip install PyYAML
+ script:
+ - make advent cheat
artifacts:
paths:
- advent
+ - cheat
# cache outputs to reduce the build time
cache:
paths:
stage: test
before_script:
- apk update
- - apk add make gcc
+ - apk add make gcc python libedit-dev
+ - pip install PyYAML
- apk add lcov --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
script:
- cd tests
- make
+ - make coverage
- cd ..
- - lcov -t "advent" -o advent.info -c -d .
- - genhtml -o coverage advent.info
artifacts:
paths:
- coverage
stage: test
before_script:
- apk update
- - apk add make
+ - apk add make libedit
script:
- cd tests
- make
pages:
stage: deploy
script:
- - mkdir -p public/releases
+ - mkdir public
- mv coverage public
- - "mv *.html public"
- - "mv *.tar.gz public/releases"
artifacts:
paths:
- public
only:
- master
dependencies:
- - html
- test:debug
- - dist
-