aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 61960d04b513183365cf9699ab8bfd509e9d534f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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
    paths:
      - .

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: 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-dev .
    - docker push $CI_REGISTRY_IMAGE:latest-dev