This repository has been archived by the owner on Oct 18, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- File name extension must be .runsettings --> | ||
<RunSettings> | ||
<DataCollectionRunSettings> | ||
<DataCollectors> | ||
<DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0" assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||
<Configuration> | ||
<CodeCoverage> | ||
|
||
<!-- | ||
About include/exclude lists: | ||
Empty "Include" clauses imply all; empty "Exclude" clauses imply none. | ||
Each element in the list is a regular expression (ECMAScript syntax). See http://msdn.microsoft.com/library/2k3te2cs.aspx. | ||
An item must first match at least one entry in the include list to be included. | ||
Included items must then not match any entries in the exclude list to remain included. | ||
--> | ||
|
||
<!-- Match assembly file paths: --> | ||
<ModulePaths> | ||
<Include> | ||
<ModulePath>.*Prism.*\.dll$</ModulePath> | ||
</Include> | ||
<Exclude> | ||
<ModulePath>.*Tests.*</ModulePath> | ||
</Exclude> | ||
</ModulePaths> | ||
|
||
</CodeCoverage> | ||
</Configuration> | ||
</DataCollector> | ||
</DataCollectors> | ||
</DataCollectionRunSettings> | ||
</RunSettings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
trigger: | ||
- master | ||
- rel/* | ||
|
||
name: $(Build.BuildId) | ||
|
||
pool: | ||
vmImage: vs2017-win2016 | ||
|
||
variables: | ||
BuildPlatform: 'Any CPU' | ||
BuildConfiguration: 'Release' | ||
|
||
steps: | ||
- task: NuGetToolInstaller@0 | ||
displayName: Use NuGet 4.7.1 | ||
inputs: | ||
versionSpec: 4.7.1 | ||
|
||
- task: NuGetCommand@2 | ||
displayName: 'NuGet restore' | ||
inputs: | ||
feedsToUse: config | ||
nugetConfigPath: NuGet.config | ||
|
||
- task: MSBuild@1 | ||
displayName: Build Prism.Plugin.Popups | ||
inputs: | ||
solution: Prism.Plugin.Popups.sln | ||
platform: '$(BuildPlatform)' | ||
configuration: '$(BuildConfiguration)' | ||
|
||
- powershell: ./Sign-Packages.ps1 | ||
workingDirectory: build | ||
displayName: Authenticode Sign Artifacts | ||
env: | ||
SignClientUser: $(SignClientUser) | ||
SignClientSecret: $(SignClientSecret) | ||
SignClientClientId: $(SignClientClientId) | ||
SignClientTenantId: $(SignClientTenantId) | ||
SignServiceResourceId: $(SignServiceResourceId) | ||
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false)) | ||
|
||
- task: PublishBuildArtifacts@1 | ||
displayName: Publish Package Artifacts | ||
inputs: | ||
PathtoPublish: '$(Build.ArtifactStagingDirectory)' | ||
ArtifactName: NuGet | ||
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false)) | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: Run Unit Tests | ||
inputs: | ||
command: test | ||
projects: tests/**/*.csproj | ||
arguments: -c $(BuildConfiguration) --collect:"Code Coverage" -s $(System.DefaultWorkingDirectory)/CodeCoverage.runsettings --no-build |