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

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

MoarVM:
  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:
    - cd "rakudo-star-$CI_COMMIT_REF_NAME"
    - perl Configure.pl --prefix=/usr/local --backend=moar --gen-moar --make-install
  artifacts:
    paths:
      - "$CI_COMMIT_REF_NAME/release"
      - /usr/local

# TODO: Run tests
# TODO: Release an updated Docker container
# TODO: Release the tarball to some Raku server