From 566d8d9cd33ccf058af73b612e00cb50c840f82d Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Thu, 2 Nov 2023 07:44:31 +0100 Subject: [PATCH] Add a GitLab CI pipeline Builds with clang-tidy and runs tests. --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d591f57 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,10 @@ +test: + image: debian:bookworm + before_script: + - apt-get -y update && apt-get -y install build-essential clang-tidy xvfb libcmocka-dev ninja-build cmake liballegro5-dev + - echo "pcm.!default { type null }" > /etc/asound.conf + script: + - mkdir build && cd build + - cmake .. -GNinja -DUSE_CLANG_TIDY=ON + - ninja + - xvfb-run test/engine-tests