File tree Expand file tree Collapse file tree 3 files changed +86
-1
lines changed
Expand file tree Collapse file tree 3 files changed +86
-1
lines changed Original file line number Diff line number Diff line change 1717 displayName : Test
1818 inputs :
1919 command : test
20- arguments : -c $(BuildConfiguration) --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Include=[coverlet.*]*
20+ arguments : -c $(BuildConfiguration) --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Include=[coverlet.*]* /p:Exclude=[coverlet.tests.remoteexecutor]*
2121 testRunTitle : $(Agent.JobName)
Original file line number Diff line number Diff line change 1+ trigger :
2+ branches :
3+ include : ["master", "*_validate"]
4+ paths :
5+ exclude : [".github", "doc", "*.md"]
6+
7+ jobs :
8+ - job : Windows
9+ displayName : Windows
10+ continueOnError : true
11+ strategy :
12+ matrix :
13+ Debug :
14+ buildConfiguration : " Debug"
15+ Release :
16+ buildConfiguration : " Release"
17+ pool :
18+ vmImage : ' windows-2019'
19+ steps :
20+ - template : build.yml
21+ - task : CopyFiles@2
22+ displayName : Collect packages
23+ inputs :
24+ SourceFolder : bin\$(BuildConfiguration)\Packages
25+ Contents : |
26+ *.nupkg
27+ *.snupkg
28+ TargetFolder : $(Build.ArtifactStagingDirectory)\Packages
29+ condition : eq(variables['BuildConfiguration'], 'Release')
30+ - task : PublishBuildArtifacts@1
31+ displayName : Publish packages as build artifacts
32+ inputs :
33+ PathtoPublish : $(Build.ArtifactStagingDirectory)\Packages
34+ ArtifactName : Packages
35+ publishLocation : Container
36+ condition : eq(variables['BuildConfiguration'], 'Release')
37+
38+ - job : macOS
39+ displayName : macOS
40+ continueOnError : true
41+ strategy :
42+ matrix :
43+ Debug :
44+ buildConfiguration : " Debug"
45+ Release :
46+ buildConfiguration : " Release"
47+ pool :
48+ vmImage : ' macOS-10.14'
49+ steps :
50+ - template : build.yml
51+
52+ - job : Linux
53+ displayName : Linux
54+ continueOnError : true
55+ strategy :
56+ matrix :
57+ Debug :
58+ buildConfiguration : " Debug"
59+ Release :
60+ buildConfiguration : " Release"
61+ pool :
62+ vmImage : ' ubuntu-16.04'
63+ steps :
64+ - template : build.yml
Original file line number Diff line number Diff line change 1+ steps :
2+ - task : UseDotNet@2
3+ inputs :
4+ version : 2.2.402
5+ displayName : Install .NET Core SDK
6+
7+ - script : dotnet restore
8+ displayName : Restore packages
9+
10+ - script : dotnet build -c $(BuildConfiguration) --no-restore
11+ displayName : Build
12+
13+ - script : dotnet pack -c $(BuildConfiguration) --no-build
14+ displayName : Pack
15+
16+ - task : DotNetCoreCLI@2
17+ displayName : Test
18+ inputs :
19+ command : test
20+ arguments : -c $(BuildConfiguration) --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Include=[coverlet.*]* /p:Exclude=[coverlet.tests.remoteexecutor]*
21+ testRunTitle : $(Agent.JobName)
You can’t perform that action at this time.
0 commit comments