aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: c31691f4501c45b95473d664044d6a9ce78230f4 (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
stages:
  - Package
  - Build

tarball:
  stage: Package
  image: alpine:latest
  before_script:
    - apk add --no-cache git make
  script:
    - git submodule sync
    - git submodule update --init --recursive
    - git submodule foreach git pull origin master
    - make -f tools/star/Makefile release VERSION=$CI_COMMIT_REF_NAME
  artifacts:
    paths:
      - release

moar:
  stage: Build
  image: alpine:latest
  before_script:
    - apk add --no-cache bash build-base git perl
    - cd "$(mktemp -d)"
    - tar xf "$CI_PROJECT_DIR/release/rakudo-star-$CI_COMMIT_REF_NAME.tar.gz"
  script:
    - perl Configure.pl --prefix=/usr/local --backend=moar --gen-moar
  artifacts:
    paths:
      - "$CI_COMMIT_REF_NAME/release"
      - /usr/local