Skip to content

Commit 44a2174

Browse files
authored
Merge branch 'master' into master
2 parents 3f31175 + faeb48b commit 44a2174

File tree

296 files changed

+1961
-1314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+1961
-1314
lines changed

.azure-pipelines/powershell-core.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
variables:
2+
WindowsName: windows
3+
WindowsImage: VS2017-Win2016
4+
LinuxName: linux
5+
LinuxImage: Ubuntu-16.04
6+
MacOSName: macOS
7+
MacOSImage: macOS-10.13
8+
TestFramework: netcoreapp2.1
9+
TestTarget: Test
10+
Configuration: Debug
11+
12+
jobs:
13+
- job: Build
14+
displayName: Build
15+
condition: succeeded()
16+
strategy:
17+
matrix:
18+
windows:
19+
OSName: ${{ variables.WindowsName }}
20+
ImageName: ${{ variables.WindowsImage }}
21+
linux:
22+
OSName: ${{ variables.LinuxName }}
23+
ImageName: ${{ variables.LinuxImage }}
24+
macOS:
25+
OSName: ${{ variables.MacOSName }}
26+
ImageName: ${{ variables.MacOSImage }}
27+
pool:
28+
vmImage: $(ImageName)
29+
30+
steps:
31+
- template: util/build-steps.yml
32+
parameters:
33+
osName: $(OSName)
34+
testFramework: ${{ variables.TestFramework }}
35+
configuration: ${{ variables.Configuration }}
36+
37+
- job: Analyze
38+
displayName: Analyze
39+
dependsOn: Build
40+
condition: succeeded()
41+
strategy:
42+
matrix:
43+
windows:
44+
OSName: ${{ variables.WindowsName }}
45+
ImageName: ${{ variables.WindowsImage }}
46+
linux:
47+
OSName: ${{ variables.LinuxName }}
48+
ImageName: ${{ variables.LinuxImage }}
49+
macOS:
50+
OSName: ${{ variables.MacOSName }}
51+
ImageName: ${{ variables.MacOSImage }}
52+
pool:
53+
vmImage: $(ImageName)
54+
55+
steps:
56+
- template: util/analyze-steps.yml
57+
parameters:
58+
osName: $(OSName)
59+
configuration: ${{ variables.Configuration }}
60+
61+
- job: Test
62+
displayName: Test
63+
dependsOn: Build
64+
condition: succeeded()
65+
timeoutInMinutes: 120
66+
strategy:
67+
matrix:
68+
windows:
69+
OSName: ${{ variables.WindowsName }}
70+
ImageName: ${{ variables.WindowsImage }}
71+
linux:
72+
OSName: ${{ variables.LinuxName }}
73+
ImageName: ${{ variables.LinuxImage }}
74+
macOS:
75+
OSName: ${{ variables.MacOSName }}
76+
ImageName: ${{ variables.MacOSImage }}
77+
pool:
78+
vmImage: $(ImageName)
79+
80+
steps:
81+
- template: util/test-steps.yml
82+
parameters:
83+
osName: $(OSName)
84+
testFramework: ${{ variables.TestFramework }}
85+
testTarget: ${{ variables.TestTarget }}
86+
configuration: ${{ variables.Configuration }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
parameters:
2+
osName: ''
3+
configuration: ''
4+
5+
steps:
6+
- template: download-build-steps.yml
7+
parameters:
8+
osName: ${{ parameters.osName }}
9+
10+
- pwsh: 'Install-Module platyPS -Force -Confirm:$false -Scope CurrentUser'
11+
displayName: 'Install platyPS'
12+
13+
- task: DotNetCoreCLI@2
14+
displayName: 'Generate Help'
15+
inputs:
16+
command: custom
17+
custom: msbuild
18+
arguments: 'build.proj /t:GenerateHelp /p:Configuration=${{ parameters.configuration }}'
19+
20+
- task: DotNetCoreCLI@2
21+
displayName: 'Static Analysis'
22+
inputs:
23+
command: custom
24+
custom: msbuild
25+
arguments: 'build.proj /t:StaticAnalysis /p:Configuration=${{ parameters.configuration }}'
26+
27+
- template: publish-artifacts-steps.yml
28+
parameters:
29+
artifactName: analyze-${{ parameters.osName }}

.azure-pipelines/util/build-steps.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
parameters:
2+
osName: ''
3+
testFramework: ''
4+
configuration: ''
5+
6+
steps:
7+
- task: DotNetCoreCLI@2
8+
displayName: Build
9+
inputs:
10+
command: custom
11+
custom: msbuild
12+
arguments: 'build.proj /t:Build /p:Configuration=${{ parameters.configuration }};TestFramework=${{ parameters.testFramework }}'
13+
14+
- template: publish-artifacts-steps.yml
15+
parameters:
16+
artifactName: build-${{ parameters.osName }}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
parameters:
2+
osName: ''
3+
4+
steps:
5+
- task: DownloadPipelineArtifact@0
6+
displayName: 'Download build-${{ parameters.osName }}'
7+
inputs:
8+
artifactName: build-${{ parameters.osName }}
9+
targetPath: artifacts

.azure-pipelines/util/test-steps.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
parameters:
2+
osName: ''
3+
testFramework: ''
4+
testTarget: ''
5+
configuration: ''
6+
7+
steps:
8+
- template: download-build-steps.yml
9+
parameters:
10+
osName: ${{ parameters.osName }}
11+
12+
- task: DotNetCoreCLI@2
13+
displayName: Test
14+
inputs:
15+
command: custom
16+
custom: msbuild
17+
arguments: 'build.proj /t:${{ parameters.testTarget }} /p:Configuration=${{ parameters.configuration }};TestFramework=${{ parameters.testFramework }}'
18+
19+
- template: publish-artifacts-steps.yml
20+
parameters:
21+
artifactName: test-${{ parameters.osName }}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
variables:
2+
WindowsName: windows
3+
WindowsImage: VS2017-Win2016
4+
TestFramework: net472
5+
TestTarget: TestNet472
6+
Configuration: Debug
7+
8+
jobs:
9+
- job: Build
10+
displayName: Build
11+
condition: succeeded()
12+
pool:
13+
vmImage: ${{ variables.WindowsImage }}
14+
15+
steps:
16+
- template: util/build-steps.yml
17+
parameters:
18+
osName: ${{ variables.WindowsName }}
19+
testFramework: ${{ variables.TestFramework }}
20+
configuration: ${{ variables.Configuration }}
21+
22+
- job: Test
23+
displayName: Test
24+
dependsOn: Build
25+
condition: succeeded()
26+
timeoutInMinutes: 120
27+
pool:
28+
vmImage: ${{ variables.WindowsImage }}
29+
30+
steps:
31+
- template: util/test-steps.yml
32+
parameters:
33+
osName: ${{ variables.WindowsName }}
34+
testFramework: ${{ variables.TestFramework }}
35+
testTarget: ${{ variables.TestTarget }}
36+
configuration: ${{ variables.Configuration }}

Repo.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<RepoSrc>$(RepoRoot)src/</RepoSrc>
77
<RepoArtifacts>$(RepoRoot)artifacts/</RepoArtifacts>
88
<RepoTools>$(RepoRoot)tools/</RepoTools>
9-
<RepoBuild>$(RepoRoot)build/</RepoBuild>
109
</PropertyGroup>
1110

1211
</Project>

azure-powershell-linux.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

azure-powershell-macOS.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

azure-powershell-windows.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)