Skip to content

Commit

Permalink
Updated Travis config to allow PR builds to feature branches.
Browse files Browse the repository at this point in the history
The previous restriction allowed builds only when the target
branch = master or a tag with specific name pushed.

Now every tag would be allowed too.
  • Loading branch information
mihailradkov authored and desislava-hristova-ontotext committed Sep 24, 2019
1 parent ef6e253 commit 76035fd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@ cache:
directories:
- '$HOME/.sonar/cache'

# Build only commits on master and release tags preventing double builds for PRs
# See https://docs.travis-ci.com/user/pull-requests/#double-builds-on-pull-requests
branches:
only:
- master
- /v[0-9]+\.[0-9]+\.[0-9]+(-.*)?$/
# Trigger build only when one of the following conditions is met
if: type = pull_request OR branch = master OR tag IS present

addons:
sonarcloud:
Expand Down

0 comments on commit 76035fd

Please sign in to comment.