image: nimlang/nim:latest
stages:
- - build
+ - test
+ - publish
-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 -d:quick --passc:-flto nimcoon.nim && strip nimcoon
artifacts:
paths:
- nimcoon