From d65a009794ef0c1bf6c9d5097f13644a91a88079 Mon Sep 17 00:00:00 2001 From: Dan Cohen Date: Thu, 13 Jul 2017 15:23:55 +0100 Subject: [PATCH] early exit if on a PR travis doesn't support running stages based on branch - see https://github.com/travis-ci/travis-ci/issues/7149 --- .travis.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3410ec0..f60af5c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,12 +15,10 @@ jobs: - cd EasyConfig.UnitTests - dotnet restore - dotnet test + - if [ -z "$TRAVIS_PULL_REQUEST_BRANCH"]; then travis_terminate 0; fi; - stage: pack script: - cd EasyConfig.Net.Core - dotnet restore - dotnet pack -o . /p:Version=1.0.$TRAVIS_BUILD_NUMBER - dotnet nuget push EasyConfig.Net.Core.*.nupkg -k $NugetApiKey -s https://www.nuget.org/ -branches: - only: - - master \ No newline at end of file