Browse Source

Run the unit tests with CI

Martijn Braam 5 months ago
parent
commit
67b5c650e2
1 changed files with 10 additions and 0 deletions
  1. 10 0
      .gitlab-ci.yml

+ 10 - 0
.gitlab-ci.yml

@@ -30,6 +30,16 @@ lint:
   script:
     - bash ./configtest.sh
 
+tests:
+  stage: test
+  image: alpine:edge
+  before_script:
+    - apk add --no-cache build-base meson samurai scdoc libconfig-dev linux-headers
+  script:
+    - meson setup unittests --buildtype release --werror
+    - ninja -C unittests
+    - cd unittests && meson test --no-rebuild
+
 pages:
   stage: deploy
   image: alpine:edge