-
Notifications
You must be signed in to change notification settings - Fork 2
Allow Travis to build tags and version branches #4
Conversation
|
The main purpose of this was to stop duplicate builds (ie both the branch and PR). Thinking about it, we probably want to promote using forks, but if we do need local branches they should be like, say, |
|
Hmm, you can get some better control using conditions in Travis. It's not clear from the doc, but I believe it a top level You can also add these |
|
Ah, interesting. Still need to check if the branch name is |
|
To add bit more context, want to tag |
| - master | ||
| if: | | ||
| branch = master OR \ | ||
| branch =~ /^(?:[0-9]|[1-9][0-9]*)\.(?:[0-9]|[1-9][0-9]*)$/ OR \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version branches are probably a necessary evil for minor versions for releasing open source packages. The more complex this is the more we should start to extract it from the single repository into a template.
Assumes tags are like
v1.0.0and branches1.0.