add gitlab CI

Signed-off-by: Aidan Hahn <aidan@aidanis.online>
This commit is contained in:
Aidan Hahn 2022-03-01 23:21:43 -08:00
parent 643093d7e0
commit 033f1d5173
No known key found for this signature in database
GPG key ID: 327711E983899316

33
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,33 @@
image: debian:latest
before_script:
- apt update
- apt install -y make
- apt install -y gcc
- export CC=$(which gcc)
stages:
- build
- test
build:
stage: build
script:
- echo "compiling with $CC"
- make alog-so
artifacts:
paths:
- target/alog.so
expire_in: 1 week
test:
stage: test
script:
- make alog-tests
valgrind:
stage: test
script:
- apt install -y valgrind
- make log_test
- valgrind -s --leak-check=full --show-leak-kinds=all --error-exitcode=1 target/log_test