TravisCI: How to allow failures for environment variable

后端 未结 2 483
一整个雨季
一整个雨季 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:01

    You need to explicitly reference env in the allow_failures section:

    matrix:
      allow_failures:
        - env: TEST_GROUP=other
    
    0 讨论(0)
  • 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
    
    0 讨论(0)
提交回复
热议问题