GitLab CI Build Matrices (Workaround)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

GitLab CI Build Matrices (Workaround)

Sean P. DeNigris
Administrator
In case anyone finds it helpful, I found what seems to be the closest thing
to matrix builds that can be done in GitLab CI.

Here is a relevant excerpt [1]:
```YAML
.p61: &pharo61
  variables:
    SMALLTALK_IMAGE: "Pharo-6.1"

.p70: &pharo70
  variables:
    SMALLTALK_IMAGE: "Pharo-7.0"

stages:
  - build

.build_template: &build
  stage: build
  script:
    - source scripts/build.sh "$SMALLTALK_IMAGE"
  artifacts:
    when: on_failure
    paths:
    - ./*.fuel # Can't start with * (see
https://gitlab.com/gitlab-org/gitlab-runner/issues/2086)

pharo61_build:
  <<: *pharo61
  <<: *build

pharo70_build:
  <<: *pharo70
  <<: *build
```

1. Full file at
https://gitlab.com/SeanDeNigris/gitlab-smalltalk-ci/blob/master/.gitlab-ci-template.yml



-----
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Cheers,
Sean