From 76035fd2dddf22165afb70c561e080cfda2219e4 Mon Sep 17 00:00:00 2001 From: Mihail Radkov Date: Thu, 19 Sep 2019 16:46:11 +0300 Subject: [PATCH] Updated Travis config to allow PR builds to feature branches. 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. --- .travis.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index a2f2c5dba..e0bdf2a36 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: