From 7a35890722b07243ce000acc60dc899fdc6c510c Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 17 Apr 2025 20:08:39 +0800 Subject: [PATCH] Refactor-autogen-call-into-before_script --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..f19a306 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,29 @@ +image: debian:latest + +before_script: + - apt-get update -qq + - apt-get install -qq -y --no-install-recommends + git gcc make autoconf automake libtool gcovr + - ./autogen + +vpath-tests: + stage: test + script: + - mkdir -p build-tree + - cd build-tree + - ../configure + - make check + +unit-tests: + stage: test + script: + - ./configure --enable-sanitize + - make check + +coverage: + stage: test + script: + - ./configure --disable-static + - make check CFLAGS="--coverage -O0 -ggdb" LDFLAGS="--coverage -O0 -ggdb" + - gcovr -s -e test/ + coverage: /^TOTAL.*\s+(\d+\%)$/ -- 2.33.0