aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..9b5e3a2
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,43 @@
+stages:
+ - Test
+ - Release
+
+#
+# Tests
+#
+
+Prove:
+ stage: Test
+ image: registry.gitlab.com/tyil/docker-perl6:debian-dev-latest
+ cache:
+ key: ${CI_COMMIT_REF_NAME}
+ paths:
+ - /usr/local/share/perl6/site
+ before_script:
+ - apt update
+ - apt install -y build-essential
+ - zef install App::Prove6
+ - zef install --deps-only --test-depends --/test .
+ script: prove6 -l
+
+#
+# Release targets
+#
+
+Distribution:
+ stage: Release
+ only:
+ refs:
+ - tags
+ - master
+ image: rakudo-star
+ script:
+ - echo "NOOP"
+ artifacts:
+ name: App-CPAN-${CI_COMMIT_TAG}
+ paths:
+ - META6.json
+ - lib
+ - bin
+ - t
+ - resources