forked from Humanizr/Humanizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
57 lines (48 loc) · 1.68 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
image: Visual Studio 2017
configuration: Release
branches:
only:
- master
- dev
- /hotfix\/.*/
environment:
SignClientSecret:
secure: M1FsBBfB/2sEzx7+qsRyI33ROJeJDj2xMWegE3DdTSY=
SignClientUser:
secure: aHMEZLZM2oqzByNcU5EaByQVhoJom3iPgM4ipDZtzh7DCHAF5mkZdE6VWlPCmczD
init:
- git config --global core.autocrlf input
install:
- cmd: appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/v4.5.0/NuGet.exe
- cmd: nuget install SignClient -Version 0.9.1 -SolutionDir %APPVEYOR_BUILD_FOLDER% -Verbosity quiet -ExcludeVersion
before_build:
- cmd: msbuild /t:restore src\Humanizer.sln
build:
verbosity: normal
parallel: true
project: src\Humanizer.sln
after_build:
- ps: |
dotnet test -c Release .\src\Humanizer.Tests\Humanizer.Tests.csproj
nuget install nerdbank.gitversioning -Version 2.1.16 -SolutionDir $Env:APPVEYOR_BUILD_FOLDER -Verbosity quiet -ExcludeVersion
$vers = & .\packages\nerdbank.gitversioning\tools\Get-Version.ps1
$nugetVer = $vers.NuGetPackageVersion
ls .\NuSpecs\*.nuspec | %{ nuget pack $_.FullName -version "$nugetVer" -BasePath "src" -NoPackageAnalysis }
- ps: '.\scripts\Sign-Package.ps1'
- ps: 'ls *.nupkg | %{ appveyor PushArtifact $_.Name}'
test: off
deploy:
- provider: NuGet
server: https://www.myget.org/F/humanizer/api/v2/package
on:
branch: master
api_key:
secure: fAHleWvVZqxJRljDCgwYIbn/RXvbKDacgSEYMfk0VvWhpl6L/gu+OVqS0n7YO7TS
artifact: /.*\.nupkg/
- provider: NuGet
server: https://www.myget.org/F/humanizer/api/v2/package
on:
branch: dev
api_key:
secure: fAHleWvVZqxJRljDCgwYIbn/RXvbKDacgSEYMfk0VvWhpl6L/gu+OVqS0n7YO7TS
artifact: /.*\.nupkg/