Skip to content

Commit 5611684

Browse files
author
Summer
authored
install nuget to latest version due to mono nuget version too old and nuget update -self issues (#11)
1 parent 3036ed8 commit 5611684

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
language: csharp
22
dotnet: 2.0.2
3+
before_install:
4+
- mkdir -p .nuget
5+
- wget -O .nuget/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
6+
- mono .nuget/nuget.exe
37
script:
48
- dotnet test Test/Test.csproj
59
deploy:
610
provider: script
711
skip_cleanup: true
8-
script: nuget update -self && nuget pack -NoDefaultExcludes && nuget push *.nupkg $api_key -Source https://www.nuget.org/api/v2/package
12+
script: mono .nuget/nuget.exe pack -NoDefaultExcludes && mono .nuget/nuget.exe push *.nupkg $api_key -Source https://www.nuget.org/api/v2/package
913
on:
1014
branch: master
1115
tags: true

0 commit comments

Comments
 (0)