X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=.gitlab-ci.yml;h=13004d5f0bb7a24f76b44ccddbb7b25c1187d10a;hb=f373d87ba7ca7b2011fe26ea81544daebfdf66fb;hp=725dfcb86698b4745597fbc9de62c02b94e7c042;hpb=6b8c9948761b4051b853c66ca2c639e770aee3c3;p=open-adventure.git diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 725dfcb..13004d5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,15 @@ -image: gcc +image: alpine -# build using Makefile -build: +stages: + - build + - test + +# build advent itself +binary: stage: build - before_script: - - apt update && apt -y install make autoconf + before_script: + - apk update + - apk add make gcc musl-dev script: - make advent artifacts: @@ -15,8 +20,34 @@ build: paths: - "*.o" +manpage: + stage: build + before_script: + - apk update + - apk add make asciidoc + script: + - make .asc.6 + artifacts: + paths: + - advent.6 + +html: + stage: build + before_script: + - apk update + - apk add make asciidoc libxslt + script: + - make .asc.html + artifacts: + paths: + - advent.html + # run tests using the binary built before test: stage: test + before_script: + - apk update + - apk add make script: - - make check + - cd tests + - make