Add .gitlab-ci.yml
This commit is contained in:
parent
b3d6df3a8d
commit
6b8c994876
1 changed files with 22 additions and 0 deletions
22
.gitlab-ci.yml
Normal file
22
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
image: gcc
|
||||||
|
|
||||||
|
# build using Makefile
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
before_script:
|
||||||
|
- apt update && apt -y install make autoconf
|
||||||
|
script:
|
||||||
|
- make advent
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- advent
|
||||||
|
# cache outputs to reduce the build time
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- "*.o"
|
||||||
|
|
||||||
|
# run tests using the binary built before
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- make check
|
Loading…
Add table
Add a link
Reference in a new issue