33 lines
540 B
YAML
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
|