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?
You should see a My repositories label followed by a plus sign (i.e. + ). Click on that plus sign (i.e. + ). It will lead you to a page listing all your Github repositories with an on/off toggle beside each one. Just put the toggle to "off" for the repositories you don't want in Travis CI.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With