Allow matrix builds conditionally

A repost of https://github.com/travis-ci/travis-ci/issues/7149 . It would be great to be able to do something like:

matrix:
  include:
    -- something
    -- something
    -- if branch != master
       something

Specifically, we have a branch upon release that is the built version of our software and we have a test build that runs our building process which fails when trying to run against a built branch.

It would be great to be able to use the conditional within the matrix.

In

I explain how you might do this within matrix.include using the if condition. Did you miss it, or does it fall short of your expectations?

1 Like

I missed that, rather was doing it incorrectly (!= instead of !~ for a regex negation).

Thank you!

This can be marked resolved?