Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TravisCI: How to allow failures for environment variable

Tags:

travis-ci

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

For example:

.travis.yml:

env:   - TEST_GROUP=Smoke   - TEST_GROUP=other # How to allow failures for this variable? matrix:   allow_failures:     - TEST_GROUP=other # This does not work 
like image 773
Stancell Avatar asked Jan 03 '14 14:01

Stancell


People also ask

Which of the following type of commands are supported by Travis CLI?

There are three types of commands: Non-API Commands, General API Commands and Repository Commands. All commands take the form of travis COMMAND [ARGUMENTS] [OPTIONS] .

Which of the following providers are supported by Travis CI?

Continuous Deployment to the following providers is supported: anynines. AWS CloudFormation. AWS CodeDeploy.

Which of the following file is used to configure the Travis CI?

Configuration. Travis CI is configured by adding a file named . travis. yml , which is a YAML format text file, to the root directory of the repository.


1 Answers

You need to explicitly reference env in the allow_failures section:

matrix:   allow_failures:     - env: TEST_GROUP=other 
like image 99
roidrage Avatar answered Sep 18 '22 17:09

roidrage