TravisCI: How to allow failures for environment variable

后端 未结 2 482
一整个雨季
一整个雨季 2021-02-12 03:18

How to allow failures for builds having specific environment variable value?

For example:

.travis.yml:

env:
  - TEST_GROUP=Smoke
  - TEST_GROUP=o         


        
2条回答
  •  野的像风
    2021-02-12 04:16

    @roidrage's answer works for me.

    When using multiple env variables in a single matrix dimension, env variables have to be combined like this:

    env:
    - TEST_GROUP=Smoke TEST_ENV=airport
    - TEST_GROUP=other TEST_ENV=outside
    matrix:
      allow_failures:
      - env: TEST_GROUP=other TEST_ENV=outside
    

提交回复
热议问题