forked from dotnet/format
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-integration.yml
78 lines (73 loc) · 2.86 KB
/
azure-pipelines-integration.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
76
77
78
# Branches that trigger a build on commit
trigger:
- main
- feature/*
- release/*
# Branches that trigger builds on PR
pr:
- main
- feature/*
- release/*
jobs:
- job: Format
pool:
vmImage: 'windows-latest'
strategy:
maxParallel: 8
matrix:
format:
_repo: "https://github.com/dotnet/format"
_repoName: "dotnet/format"
_targetSolution: "format.sln"
_branchName: "main"
_sha: "1ec992c6038af9d42499d3ac88c3fd65d0c2f6ed"
roslyn:
_repo: "https://github.com/dotnet/roslyn"
_repoName: "dotnet/roslyn"
_targetSolution: "Compilers.sln"
_branchName: "main"
_sha: "b670821b5150bc7ddb01f415d91c17dd55c752a2"
sdk:
_repo: "https://github.com/dotnet/sdk"
_repoName: "dotnet/sdk"
_targetSolution: "sdk.sln"
_branchName: "main"
_sha: "d32c8e7d19f3fc13190ff14cd960370a5d148995"
project-system:
_repo: "https://github.com/dotnet/project-system"
_repoName: "dotnet/project-system"
_targetSolution: "ProjectSystem.sln"
_branchName: "main"
_sha: "5896b880c19071eb34c0e9966295c41d2bb44142"
# msbuild:
# _repo: "https://github.com/dotnet/msbuild"
# _repoName: "dotnet/msbuild"
# _targetSolution: "MSBuild.sln"
# _branchName: "main"
# _sha: "14c24b2d38abe2662bd5e3bcc88c91a13655b073"
aspnetcore:
_repo: "https://github.com/dotnet/aspnetcore"
_repoName: "dotnet/aspnetcore"
_targetSolution: "AspNetCore.sln"
_branchName: "main"
_sha: "e832fef051ab1256d6d50fc79d1582451f908453"
efcore:
_repo: "https://github.com/dotnet/efcore"
_repoName: "dotnet/efcore"
_targetSolution: "All.sln"
_branchName: "main"
_sha: "929cab1e250e50751551d628c4d7208de1155af6"
razor-tooling:
_repo: "https://github.com/dotnet/razor-tooling"
_repoName: "dotnet/razor-tooling"
_targetSolution: "Razor.sln"
_branchName: "main"
_sha: "da152bfa9c519efd4e0038fbd7804af3fd27056d"
timeoutInMinutes: 60
steps:
- script: eng\integration-test.cmd -repo '$(_repo)' -branchName '$(_branchName)' -sha '$(_sha)' -targetSolution '$(_targetSolution)' -testPath '$(Agent.TempDirectory)\temp' -stage 'prepare'
displayName: Prepare $(_repoName) for formatting
- script: eng\integration-test.cmd -repo '$(_repo)' -branchName '$(_branchName)' -sha '$(_sha)' -targetSolution '$(_targetSolution)' -testPath '$(Agent.TempDirectory)\temp' -stage 'format-workspace'
displayName: Run dotnet-format on $(_repoName) $(_targetSolution)
- script: eng\integration-test.cmd -repo '$(_repo)' -branchName '$(_branchName)' -sha '$(_sha)' -targetSolution '$(_targetSolution)' -testPath '$(Agent.TempDirectory)\temp' -stage 'format-folder'
displayName: Run dotnet-format on $(_repoName) repo folder