Skip to content

Instantly share code, notes, and snippets.

@unional
Created November 20, 2017 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unional/82d028bc8ea6260c3037517b5d9a7246 to your computer and use it in GitHub Desktop.
Save unional/82d028bc8ea6260c3037517b5d9a7246 to your computer and use it in GitHub Desktop.
Better travis strategy
branches:
only:
- master
- /^greenkeeper.*$/
# vs
branches:
except:
- /^v\d+\.\d+\.\d+$/
@unional
Copy link
Author

unional commented Nov 20, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment