From 033f1d51732f77301f8abf30c24a7bf12869bf0f Mon Sep 17 00:00:00 2001 From: Aidan Hahn Date: Tue, 1 Mar 2022 23:21:43 -0800 Subject: [PATCH] add gitlab CI Signed-off-by: Aidan Hahn --- .gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..73a6738 --- /dev/null +++ b/.gitlab-ci.yml @@ -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