aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2019-07-24 19:11:59 +0200
committerPatrick Spek <p.spek@tyil.nl>2019-07-24 19:11:59 +0200
commite881e1c1a22d21e6d1101427a0912d64ec3c7603 (patch)
tree82f12f2a2a1911292d7cdf075a2baaf81a446d82
parent306177e2f122d2ad98acbad3a91ab6dabbbd1087 (diff)
downloadApp::CPAN-e881e1c1a22d21e6d1101427a0912d64ec3c7603.tar.gz
App::CPAN-e881e1c1a22d21e6d1101427a0912d64ec3c7603.tar.bz2
Update GitLab CI configuration
This should ensure a Docker image gets built, in addition to the distribution tarball.
-rw-r--r--.gitlab-ci.yml51
1 files changed, 38 insertions, 13 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b5eda18..61960d0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,23 +1,48 @@
-App::CPAN:
- only:
- - master
+stages:
+ - test
+ - release
+
+prove:
+ stage: test
image: rakudo-star
before_script:
- zef install . --deps-only --test-depends --/test
script: AUTHOR_TESTING=1 prove -v -e "perl6 -Ilib" t
+
+distribution:
+ stage: release
+ only:
+ - master
+ image: rakudo-star
+ script:
+ - echo "NOOP"
artifacts:
- name: "perl6-App-CPAN"
+ name: perl6-App-CPAN
paths:
- - META6.json
- - bin
- - lib
- - resources
- - t
+ - .
-test:
+docker-latest:
+ stage: release
+ only:
+ - master
+ image: docker:stable
+ services:
+ - docker:dind
+ before_script:
+ - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
+ script:
+ - docker build -t $CI_REGISTRY_IMAGE:latest .
+ - docker push $CI_REGISTRY_IMAGE:latest
+
+docker-test:
+ stage: release
except:
- master
- image: rakudo-star
+ image: docker:stable
+ services:
+ - docker:dind
before_script:
- - zef install . --deps-only --test-depends --/test
- script: AUTHOR_TESTING=1 prove -v -e "perl6 -Ilib" t
+ - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
+ script:
+ - docker build -t $CI_REGISTRY_IMAGE:latest-dev .
+ - docker push $CI_REGISTRY_IMAGE:latest-dev