Skip to content

Commit

Permalink
Make Travis only build on pushes to master (and PRs).
Browse files Browse the repository at this point in the history
Currently Travis will build twice for PRs by committers on branches
that are in the repo - once for the branch and once for the merge.
Also, it will build anytime a branch is pushed, even if it's not
ready to PR yet. This commit stops both of these undesired behaviours.
  • Loading branch information
jemc committed Apr 8, 2016
1 parent b11b5ca commit 1507458
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
language: c

branches:
only:
- master

sudo: required

addons:
Expand Down

0 comments on commit 1507458

Please sign in to comment.