File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -31,4 +31,12 @@ script:
31
31
- ./ci.sh
32
32
33
33
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"'
Original file line number Diff line number Diff line change 6
6
# Ensure no compile errors in all projects
7
7
find . -name * .csproj -exec dotnet build {} \;
8
8
9
+ # Create the NuGet package
10
+ cd src/KubernetesClient/
11
+ dotnet pack -c Release
12
+ cd ../..
13
+
9
14
# Execute Unit tests
10
15
cd tests/KubernetesClient.Tests
11
16
dotnet restore
12
17
dotnet test
13
18
19
+ cd ../..
You can’t perform that action at this time.
0 commit comments