Skip to content

Commit

Permalink
early exit if on a PR
Browse files Browse the repository at this point in the history
travis doesn't support running stages based on branch - see travis-ci/travis-ci#7149
  • Loading branch information
Dan Cohen committed Jul 13, 2017
1 parent b825c37 commit d65a009
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d65a009

Please # to comment.