浏览代码

Run the unit tests with CI

Martijn Braam 5 月之前
父节点
当前提交
67b5c650e2
共有 1 个文件被更改,包括 10 次插入0 次删除
  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