Skip to content

Commit

Permalink
Add deploy to Travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenMP committed Oct 21, 2018
1 parent 98d4059 commit a6e8b86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ script:
- dotnet test -c Release --no-build ChatWell.YouTube.Tests/ChatWell.YouTube.Tests.csproj -p:CollectCoverage=true -p:CoverletOutputFormat=opencover -p:Exclude="[ChatWell.YouTube.Tests*]*"
- curl -s https://codecov.io/bash > codecov
- chmod +x codecov
- ./codecov -f ./SLOBSharp.Tests/coverage.opencover.xml
# deploy:
# skip_cleanup: true
# provider: script
# script: dotnet nuget push ./SLOBSharp/bin/Release/*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json
# on:
# branch: release
- ./codecov -f ./ChatWell.YouTube.Tests/coverage.opencover.xml
deploy:
skip_cleanup: true
provider: script
script: dotnet nuget push ./ChatWell.YouTube/bin/Release/*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json
on:
branch: release
notifications:
email: false
1 change: 1 addition & 0 deletions ChatWell.YouTube/ChatWell.YouTube.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<PackageLicenseUrl>https://github.com/StephenMP/ChatWell.YouTube/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/StephenMP/ChatWell.YouTube</PackageProjectUrl>
<RepositoryUrl>https://github.com/StephenMP/ChatWell.YouTube</RepositoryUrl>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit a6e8b86

Please sign in to comment.