Fixed double builds in Travis

no issue

- Travis builds were being run twice on a PR: once for the PR and once
  for the branch
- this commit whitelists the branches that Travis can run on
This commit is contained in:
Daniel Lockyer 2020-02-03 12:41:41 +00:00
parent 97d6e6b98b
commit e200914dec
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@ services:
- mysql
# Don't run builds for renovate PRs
if: NOT head_branch =~ ^renovate
branches:
only:
- master
- 2.x
env:
matrix:
- DB=sqlite3 NODE_ENV=testing