Jelajahi Sumber

Run the unit tests with CI

Martijn Braam 5 bulan lalu
induk
melakukan
67b5c650e2
1 mengubah file dengan 10 tambahan dan 0 penghapusan
  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