-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
100 lines (72 loc) · 2.35 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
-
branches:
only:
- master
- develop
skip_tags: true
pull_requests:
do_not_increment_build_number: true
os: Visual Studio 2017
nuget:
disable_publish_on_pr: true
assembly_info:
patch: false
environment:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
CHOCOLATEY_KEY:
secure: 9M5HbeG8Cc5XbyirU+F+mVmtVP1tJ9WB8n4s3ATg+doSkUNODnFZ0LAdR44o2Jcd
NUGET_KEY:
secure: yDtlwZxOr+meDM0iMA3pWo3VO+t2oRDIjf+accbVz3N2NO74W6yhF7lgRjw9B2Ek
install:
- choco install gitversion.portable -pre -y --no-progress
before_build:
- ps: >-
C:\ProgramData\chocolatey\bin\gfv.exe /l console /output buildserver /updateAssemblyInfo
cd /projects/msbuild-xslt/src
dotnet restore
build_script:
- cmd: >-
cd /projects/msbuild-xslt
MSBuild.exe build.proj /t:BuildAll;Pack /p:PackageVersion="%GitVersion_NuGetVersion%
test:
assemblies:
- src\tests\bin\Release\**\Alphacloud.MSBuild.Xslt.Tests.dll
artifacts:
- path: out/packages/*.nupkg
deploy_script:
- ps: >-
$version = $env:GitVersion_NuGetVersion ;
nuget setApiKey $env:NUGET_KEY -verbosity quiet;
appveyor-retry nuget push out\packages\Alphacloud.MSBuild.Xslt.$version.nupkg -source https://www.nuget.org/api/v2/package/ ;
cd src\solution ;
choco pack xslt.portable.nuspec --version $version ;
if ($env:APPVEYOR_REPO_BRANCH -eq 'master') {
choco apiKey -k $env:CHOCOLATEY_KEY -source https://chocolatey.org/ ;
appveyor-retry choco push msbuild-xslt.portable.$version.nupkg
}
-
pull_requests:
do_not_increment_build_number: true
os: Visual Studio 2017
nuget:
disable_publish_on_pr: true
assembly_info:
patch: false
environment:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
install:
- choco install gitversion.portable -pre -y --no-progress
before_build:
- ps: >-
C:\ProgramData\chocolatey\bin\gfv.exe /l console /output buildserver /updateAssemblyInfo
cd /projects/msbuild-xslt/src
dotnet restore
build_script:
- cmd: >-
cd /projects/msbuild-xslt
MSBuild.exe build.proj /t:BuildAll;Pack /p:PackageVersion="%GitVersion_NuGetVersion%
test:
assemblies:
- src\tests\bin\Release\**\Alphacloud.MSBuild.Xslt.Tests.dll