]> njoseph.me Git - nimcoon.git/blobdiff - .gitlab-ci.yml
ci: Run unit tests in pipeline
[nimcoon.git] / .gitlab-ci.yml
index 7597d89e387da1f12a0be2ac3de0347653fdccc7..a87da85c8a7f1b644bee64b8c0d1a228b0e8bf2a 100644 (file)
@@ -1,12 +1,18 @@
 image: nimlang/nim:latest
 
 stages:
+  - test
   - build
 
-compile:
-  stage: build
+run-unit-tests:
+  stage: test
   script:
-    - nim c -d:ssl -d:release nimcoon.nim
+    - nim c -d:ssl -r tests
+
+publish-artifacts:
+  stage: publish
+  script:
+    - nim c -d:ssl -d:release nimcoon.nim && strip nimcoon
   artifacts:
     paths:
       - nimcoon