forked from dotnet/Open-XML-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
33 lines (26 loc) · 1.41 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
os: Visual Studio 2017
environment:
image: Visual Studio 2017
SignClientSecret:
secure: 2QKIbnEaxM/df01+GLvTjVKdLL7RlwKmCR/APcWFRUUF2VQWBRQFQ1DP3gK49epL
install:
- ps: nuget install -ExcludeVersion SignClient -Version 0.5.0-beta4 -pre -OutputDirectory .\build\
before_build:
- ps: gitversion /l console /output buildserver
build_script:
- ps: .\build\Update-Version.ps1
- cmd: msbuild /t:restore;build /p:Configuration=Release /m .\Open-Xml-SDK.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- cmd: msbuild /t:pack /p:Configuration=Release .\DocumentFormat.OpenXml\DocumentFormat.OpenXml.csproj /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- ps: .\build\SignPackage.ps1
test_script:
- dotnet vstest /logger:trx bin\Release\DocumentFormat.OpenXml.Tests\netcoreapp1.0\DocumentFormat.OpenXml.Tests.dll /Framework:FrameworkCore10
- vstest.console.exe /logger:appveyor bin\Release\DocumentFormat.OpenXml.Tests\net46\DocumentFormat.OpenXml.Tests.dll /Framework:Framework45
- vstest.console.exe /logger:appveyor bin\Release\DocumentFormat.OpenXml.Tests\net452\DocumentFormat.OpenXml.Tests.dll /Framework:Framework45
deploy:
provider: NuGet
server: https://dotnet.myget.org/F/open-xml-sdk/api/v2/package
api_key:
secure: +uagaLcg+y8G8ZBxlXm0E5VmTHeT030NeoyHZGU8V7MtIPc1+VUXru0mAPVh0KhK
on:
branch: [master, vNext, Office2016]