forked from dotnet/Open-XML-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
40 lines (32 loc) · 1.38 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
os: Visual Studio 2017
environment:
image: Visual Studio 2017
SignClientSecret:
secure: zO+vuYp34bSBjrqwaKPwUz+ENjMsA1Z9bsMPfU+75Ts=
SignClientUser:
secure: wPNGuPyt7pAx9YDKurysk5polnxcGU7GiWmJ70r4tpyDUgGEqxRSZhZ8lWvBhwuC
Configuration: Release
ProjectLoadStyle: All
install:
- ps: nuget install -ExcludeVersion SignClient -Version 0.9.0 -OutputDirectory .\build\
- cmd: choco install gitversion.portable
- cmd: gitversion /output buildserver
- ps: Invoke-WebRequest https://packagecompatstorage.blob.core.windows.net/tools/compat-agent.exe -o compat-agent.exe
build_script:
- cmd: msbuild /t:restore;build /m .\Open-Xml-SDK.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- cmd: msbuild /t:pack /m .\src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.csproj /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- ps: .\build\SignPackage.ps1
test_script:
- cmd: msbuild /m /t:test .\Open-Xml-SDK.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
artifacts:
- path: 'bin\**\*.nupkg'
on_finish:
- cmd: compat-agent.exe -config compat.yml -version %GitVersion_NuGetVersionV2%
deploy:
provider: NuGet
server: https://dotnet.myget.org/F/open-xml-sdk/api/v2/package
api_key:
secure: SSFVVP2n8gyH0kiElrqwrIJJwL3C7XFnYnntr3z/h2Rwpa7/K1nDd2BP3JPB6347
on:
branch: [master]