alog/.gitlab-ci.yml
Aidan Hahn 033f1d5173
add gitlab CI
Signed-off-by: Aidan Hahn <aidan@aidanis.online>
2022-03-01 23:40:20 -08:00

33 lines
540 B
YAML

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