Add .gitlab-ci.yml
[open-adventure.git] / .gitlab-ci.yml
1 image: gcc
2
3 # build using Makefile
4 build:
5   stage: build
6   before_script: 
7     - apt update && apt -y install make autoconf 
8   script: 
9     - make advent
10   artifacts:
11     paths:
12       - advent
13   # cache outputs to reduce the build time
14   cache:
15     paths:
16       - "*.o"
17
18 # run tests using the binary built before
19 test:
20   stage: test
21   script:
22     - make check