Reputation: 100454
I have a github project that I'm building with travis. https://travis-ci.org/emmby/greenDAO/branches
I want travis to build most of the branches in that project, but there's one in particular that I wish to exclude.
So I added the following to .travis.yml
on my master
branch:
branches:
except:
- mvn-repo
However, that didn't disable building of the branch. So reading up on the docs, I came across this note:
Please note that currently (for historical reasons), .travis.yml needs to be present on all active branches of your project.
So, I went ahead and created a .travis.yml
file in the mvn-repo
branch which contains the same branches
section. However, travis still insists on building and failing my mvn-repo
branch.
Why is travis trying to build a branch that I've marked for exclusion?
Upvotes: 16
Views: 3795
Reputation: 357
Update: Currently, travis-ci has a switch that decides whether or not to build a branches that do not contain a .travis.yml file.
Upvotes: 1
Reputation: 10106
Are you still having this issue? As you describe it, it sounds like a bug, so please report this in our issue tracker, and we'll take a look for you.
Upvotes: 3