Skip to content

Commit 5865207

Browse files
qmfrederikbrendandburns
authored andcommitted
Push to NuGet feeds (#156)
1 parent 3785ac3 commit 5865207

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,12 @@ script:
3131
- ./ci.sh
3232

3333
after_script:
34-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./integration-tests.sh; fi
34+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./integration-tests.sh; fi
35+
36+
deploy:
37+
skip_cleanup: true
38+
provider: script
39+
script: dotnet nuget push src/KubernetesClient/bin/Release/KubernetesClient.*.nupkg --api-key $NUGET_API_KEY --source $NUGET_SOURCE
40+
on:
41+
branch: master
42+
condition: '"x${NUGET_API_KEY}" != "x" && "x$NUGET_SOURCE" != "x" && "$TRAVIS_OS_NAME" == "linux"'

ci.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ set -e
66
# Ensure no compile errors in all projects
77
find . -name *.csproj -exec dotnet build {} \;
88

9+
# Create the NuGet package
10+
cd src/KubernetesClient/
11+
dotnet pack -c Release
12+
cd ../..
13+
914
# Execute Unit tests
1015
cd tests/KubernetesClient.Tests
1116
dotnet restore
1217
dotnet test
1318

19+
cd ../..

0 commit comments

Comments
 (0)