Skip to content

Multiple builds with different environments variables but not as a matrix #25542

Answered by wipe2238
zopyx asked this question in Actions
Discussion options

You must be logged in to vote

I took your .travis.yml and did a quick edit.

matrix-env:
  runs-on: ubuntu-latest
  strategy:
   matrix:
    env:
    - { TYPE: OWNCLOUD, PLONE_VERSION: 5.2, DOCKER: "pschmitt/owncloud", DOCKER_OPTIONS: "-p 127.0.0.1:8080:80", CONNECTOR_URL: "webdav://localhost:8080/remote.php/webdav", CONNECTOR_USERNAME: "admin", CONNECTOR_PASSWORD: "changeme" }
    - { TYPE: LOCAL_FS, PLONE_VERSION: 5.2, CONNECTOR_URL: "file:///tmp/testing" }
  env: ${{ matrix.env }}
  steps:
  - run: echo "Check Run->env"

It should work as you need. Each line inside strategy.matrix.env creates a job with selected env vars.

What is missing is different python versions (which could be passed as yet another variable). I…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants