Add a GitLab CI pipeline

Builds with clang-tidy and runs tests.
This commit is contained in:
Sebastian Krzyszkowiak 2023-11-02 07:44:31 +01:00
parent 7be786b88f
commit 566d8d9cd3
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

10
.gitlab-ci.yml Normal file
View file

@ -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