aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 9b5e3a2c2acaf96458e7e11cb2bb5615bbc6967d (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
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