-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/PrismLibrary/Prism
- Loading branch information
Showing
12 changed files
with
263 additions
and
24 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
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
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
trigger: | ||
- master | ||
|
||
name: $(Build.BuildId) | ||
|
||
pool: | ||
vmImage: vs2017-win2016 | ||
|
||
variables: | ||
BuildPlatform: 'Any CPU' | ||
BuildConfiguration: 'Release' | ||
|
||
steps: | ||
- template: steps/build.yml | ||
parameters: | ||
solution: Source/PrismLibrary_Core.sln | ||
solutionName: Build Prism Core | ||
|
||
- template: steps/core-test.yml | ||
parameters: | ||
displayName: Test Prism.Core | ||
projectName: Prism.Core | ||
projectsPath: $(System.DefaultWorkingDirectory)\Source\Prism.Tests\Prism.Tests.csproj |
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,17 @@ | ||
trigger: | ||
- master | ||
|
||
name: $(Build.BuildId) | ||
|
||
pool: | ||
vmImage: vs2017-win2016 | ||
|
||
variables: | ||
BuildPlatform: 'Any CPU' | ||
BuildConfiguration: 'Release' | ||
|
||
steps: | ||
- template: steps/build.yml | ||
parameters: | ||
solution: Source/PrismLibrary_Win10.sln | ||
solutionName: Build Prism UWP |
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,26 @@ | ||
trigger: | ||
- master | ||
|
||
name: $(Build.BuildId) | ||
|
||
pool: | ||
vmImage: vs2017-win2016 | ||
|
||
variables: | ||
BuildPlatform: 'Any CPU' | ||
BuildConfiguration: 'Release' | ||
|
||
steps: | ||
- template: steps/build.yml | ||
parameters: | ||
solution: Source/PrismLibrary_Wpf.sln | ||
solutionName: Build Prism.WPF | ||
|
||
- template: steps/vstest.yml | ||
parameters: | ||
displayName: Test Prism.WPF | ||
projectName: Prism.WPF | ||
projectsPath: | | ||
$(System.DefaultWorkingDirectory)\Source\Wpf\**\*test*.dll | ||
!**/obj/* | ||
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,25 @@ | ||
trigger: | ||
- master | ||
|
||
name: $(Build.BuildId) | ||
|
||
pool: | ||
vmImage: vs2017-win2016 | ||
|
||
variables: | ||
BuildPlatform: 'Any CPU' | ||
BuildConfiguration: 'Release' | ||
|
||
steps: | ||
- template: steps/build.yml | ||
parameters: | ||
solution: Source/PrismLibrary_XF.sln | ||
solutionName: Build Prism.Forms | ||
|
||
- template: steps/core-test.yml | ||
parameters: | ||
displayName: Test Prism.Forms | ||
projectName: Prism.Forms | ||
projectsPath: | | ||
Source/Xamarin/**/*.Tests.csproj | ||
!**/*Ninject*.csproj |
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,67 @@ | ||
trigger: | ||
- master | ||
- rel/* | ||
- devops | ||
|
||
name: $(Build.BuildId) | ||
|
||
pool: | ||
vmImage: vs2017-win2016 | ||
|
||
variables: | ||
BuildPlatform: 'Any CPU' | ||
BuildConfiguration: 'Release' | ||
|
||
steps: | ||
- template: steps/build.yml | ||
parameters: | ||
solution: Source/PrismLibrary.sln | ||
solutionName: Build full Prism Library | ||
|
||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Assembly Artifacts' | ||
inputs: | ||
PathtoPublish: '$(build.artifactstagingdirectory)/$(BuildConfiguration)' | ||
ArtifactName: '$(BuildConfiguration)' | ||
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false)) | ||
|
||
- powershell: ./Sign-Packages.ps1 | ||
workingDirectory: Source/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)/NuGet' | ||
ArtifactName: NuGet | ||
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false)) | ||
|
||
- template: steps/core-test.yml | ||
parameters: | ||
displayName: Test Prism.Core | ||
projectName: Prism.Core | ||
projectsPath: Source/Prism.Tests/Prism.Tests.csproj | ||
|
||
- template: steps/core-test.yml | ||
parameters: | ||
displayName: Test Prism.Forms | ||
projectName: Prism.Forms | ||
projectsPath: | | ||
Source/Xamarin/**/*.Tests.csproj | ||
!**/*Ninject*.csproj | ||
- template: steps/vstest.yml | ||
parameters: | ||
displayName: Test Prism.WPF | ||
projectName: Prism.WPF | ||
projectsPath: | | ||
$(System.DefaultWorkingDirectory)\Source\Wpf\**\*test*.dll | ||
!**/obj/* | ||
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,22 @@ | ||
parameters: | ||
solution: '**/*.sln' | ||
solutionName: 'Build Solution' | ||
|
||
steps: | ||
- task: NuGetToolInstaller@0 | ||
displayName: Use NuGet 4.7.1 | ||
inputs: | ||
versionSpec: 4.7.1 | ||
|
||
- task: NuGetCommand@2 | ||
displayName: 'NuGet restore' | ||
inputs: | ||
restoreSolution: ${{ parameters.solution }} | ||
noCache: true | ||
|
||
- task: MSBuild@1 | ||
displayName: ${{ parameters.solutionName }} | ||
inputs: | ||
solution: ${{ parameters.solution }} | ||
platform: '$(BuildPlatform)' | ||
configuration: '$(BuildConfiguration)' |
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,12 @@ | ||
parameters: | ||
displayName: 'Test Project' | ||
projectName: '**/*.sln' | ||
projectsPath: '**/*.Tests.csproj' | ||
|
||
steps: | ||
- task: DotNetCoreCLI@2 | ||
displayName: ${{ parameters.displayName }} | ||
inputs: | ||
command: test | ||
projects: ${{ parameters.projectsPath }} | ||
arguments: -c $(BuildConfiguration) --collect:"Code Coverage" -s $(System.DefaultWorkingDirectory)/Source/CodeCoverage.runsettings --no-build |
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,13 @@ | ||
parameters: | ||
displayName: 'Test Project' | ||
projectName: '**/*.sln' | ||
projectsPath: '**/*.Tests.csproj' | ||
|
||
steps: | ||
- task: VSTest@2 | ||
displayName: ${{ parameters.displayName }} | ||
inputs: | ||
testAssemblyVer2: ${{ parameters.projectsPath }} | ||
testRunTitle: '${{ parameters.projectName }}' | ||
platform: '$(BuildPlatform)' | ||
configuration: '$(BuildConfiguration)' |