image: alpine
-variables:
- GIT_SUBMODULE_STRATEGY: "recursive"
- GIT_SSL_NO_VERIFY: "true"
-
stages:
- build
- test
stage: build
before_script:
- apk update
- - apk add make gcc musl-dev python3
+ - apk add make gcc musl-dev python3 libedit-dev
- pip3 install PyYAML
- script:
+ script:
- make debug
artifacts:
paths:
stage: build
before_script:
- apk update
- - apk add make gcc musl-dev python3
+ - apk add make gcc musl-dev python3 libedit-dev
- pip3 install PyYAML
- script:
+ script:
- make advent cheat
artifacts:
paths:
stage: test
before_script:
- apk update
- - apk add make gcc
+ - apk add make gcc python3 libedit-dev
+ - pip3 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
- master
dependencies:
- test:debug
-