forked from dotnet/format
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines-integration.yml
78 lines (73 loc) · 2.84 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: 'vs2017-win2016'
strategy:
maxParallel: 8
matrix:
format:
_repo: "https://github.com/dotnet/format"
_repoName: "dotnet/format"
_targetSolution: "format.sln"
_branchName: "main"
_sha: "3ad458b16ef0d630ef4393bca5bdeaa00628cfcf"
roslyn:
_repo: "https://github.com/dotnet/roslyn"
_repoName: "dotnet/roslyn"
_targetSolution: "Compilers.sln"
_branchName: "main"
_sha: "7e99a9ab877c4233b6a87c555d4c42b29f40c553"
sdk:
_repo: "https://github.com/dotnet/sdk"
_repoName: "dotnet/sdk"
_targetSolution: "sdk.sln"
_branchName: "master"
_sha: "41cd7eb0d418f558c03459dfabef3601019d97b6"
project-system:
_repo: "https://github.com/dotnet/project-system"
_repoName: "dotnet/project-system"
_targetSolution: "ProjectSystem.sln"
_branchName: "main"
_sha: "34c750bd2e793026bb190bd789e2ed07be5b621b"
msbuild:
_repo: "https://github.com/dotnet/msbuild"
_repoName: "dotnet/msbuild"
_targetSolution: "MSBuild.sln"
_branchName: "master"
_sha: "0be0490bd1261ff4a6ad64267879b36a63a33faf"
aspnetcore:
_repo: "https://github.com/dotnet/aspnetcore"
_repoName: "dotnet/aspnetcore"
_targetSolution: "AspNetCore.sln"
_branchName: "main"
_sha: "1e19c6fd19fe2f19af25da25f86d90b6fd2623fc"
efcore:
_repo: "https://github.com/dotnet/efcore"
_repoName: "dotnet/efcore"
_targetSolution: "All.sln"
_branchName: "main"
_sha: "f1a0d8c9928668310336565e73861a7e1702ddaf"
ef6:
_repo: "https://github.com/dotnet/ef6"
_repoName: "dotnet/ef6"
_targetSolution: "EntityFramework.sln"
_branchName: "main"
_sha: "ad101227fdf8ef7c2028f1b0ee2f73c426c56a33"
timeoutInMinutes: 60
steps:
- script: eng\integration-test.cmd -repo '$(_repo)' -branchName '$(_branchName)' -sha '$(_sha)' -targetSolution '$(_targetSolution)' -testPath '$(Build.SourcesDirectory)\temp' -stage 'prepare'
displayName: Prepare $(_repoName) for formatting
- script: eng\integration-test.cmd -repo '$(_repo)' -branchName '$(_branchName)' -sha '$(_sha)' -targetSolution '$(_targetSolution)' -testPath '$(Build.SourcesDirectory)\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 '$(Build.SourcesDirectory)\temp' -stage 'format-folder'
displayName: Run dotnet-format on $(_repoName) repo folder