Created
November 20, 2017 00:31
-
-
Save unional/82d028bc8ea6260c3037517b5d9a7246 to your computer and use it in GitHub Desktop.
Better travis strategy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
branches: | |
only: | |
- master | |
- /^greenkeeper.*$/ | |
# vs | |
branches: | |
except: | |
- /^v\d+\.\d+\.\d+$/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
only
strategy will trigger build on travis only once during PR (the branch does not trigger build).The
except
strategy will trigger build on travis on both branch and PR.The
except
may work fine if you disable PR build, but that means PR from fork is not built.