forked from microsoft/vs-mef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
75 lines (65 loc) · 2.65 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
version: '{build}'
branches:
only:
- master
- /^v\d+(?:\.\d+)?$/
- /[\b_]validate\b/
skip_tags: true
skip_commits:
files:
- doc/*
- README.md
- .vsts-ci.yml
- .travis-ci.yml
nuget:
disable_publish_on_pr: true
image: Visual Studio 2017
configuration: Release
environment:
VisualStudioVersion: 15.0
TreatWarningsAsErrors: true
codecov_token: bfce293b-9f33-43bb-be7f-c1a4ed2b518d
before_build:
msbuild src\Microsoft.VisualStudio.Composition.sln /nologo /m /v:quiet /t:restore
build_script:
- ps: msbuild src\Microsoft.VisualStudio.Composition.sln /nologo /m /v:minimal /t:build,pack /bl:"bin\$env:configuration\build_logs\msbuild.binlog"
test_script:
- cmd: >-
SET PATH=C:\Python34;C:\Python34\Scripts;%PATH%
pip install codecov
SET testdir=bin\Tests\%configuration%\net452\
"%userprofile%\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe"
-register:user
-target:"%xunit20%\xunit.console.x86.exe"
-targetargs:"%testdir%Microsoft.VisualStudio.Composition.Tests.dll -noshadow -html %testdir%testresults.html -xml %testdir%testresults.xml -appveyor -notrait TestCategory=FailsInCloudTest -nologo -parallel none"
-returntargetcode
-excludebyattribute:*.ExcludeFromCodeCoverage*
-excludebyfile:*\*Designer.cs
-filter:"+[Microsoft.VisualStudio.Composition]*"
-hideskipped:All
-output:%testdir%code_coverage.xml
codecov -f "%testdir%code_coverage.xml"
SET testdir=bin\Tests\%configuration%\net46\
"%userprofile%\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe"
-register:user
-target:"%xunit20%\xunit.console.x86.exe"
-targetargs:"%testdir%Microsoft.VisualStudio.Composition.Tests.dll -noshadow -html %testdir%testresults.html -xml %testdir%testresults.xml -appveyor -notrait TestCategory=FailsInCloudTest -nologo -parallel none"
-returntargetcode
-excludebyattribute:*.ExcludeFromCodeCoverage*
-excludebyfile:*\*Designer.cs
-filter:"+[Microsoft.VisualStudio.Composition]*"
-hideskipped:All
-output:%testdir%code_coverage.xml
codecov -f "%testdir%code_coverage.xml"
cd src\tests\Microsoft.VisualStudio.Composition.Tests
dotnet test -f netcoreapp1.0 --no-build --no-restore
dotnet test -f netcoreapp2.0 --no-build --no-restore
artifacts:
- path: bin\%configuration%\Packages\Microsoft.VisualStudio.Composition.15.*.nupkg
name: NuGet Package
- path: bin\%configuration%\Packages\Microsoft.VisualStudio.Composition.AppHost.15.*.nupkg
name: NuGet Package
- path: bin\%configuration%\Packages\Microsoft.VisualStudio.Composition.NetFxAttributes.*.nupkg
name: NuGet Package
- path: bin\%configuration%\build_logs\msbuild.binlog
name: Build log