diff --git a/.travis.yml b/.travis.yml index 9c15e1a17f8b..221aefd23a6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -69,8 +69,9 @@ script: $DOCKER_CMD Azure/azure-libraries-for-java -v fi - >- - if [[ $MODE == 'branchStrategy' && $TRAVIS_PULL_REQUEST != 'false' && $TRAVIS_REPO_SLUG == 'Azure/azure-rest-api-specs-pr' && $TRAVIS_BRANCH == 'master' ]]; then - exit 1 + if [[ $MODE == 'branchStrategy' ]]; then + # Check to ensure CI is not executing for a PR against the master branch in the private repository + ! [[ $TRAVIS_PULL_REQUEST != 'false' && $TRAVIS_REPO_SLUG == 'Azure/azure-rest-api-specs-pr' && $TRAVIS_BRANCH == 'master' ]] fi - >- if [[ $MODE == 'syntax' ]]; then