forked from dotnet/format
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines-integration.yml
More file actions
78 lines (73 loc) · 2.86 KB
/
azure-pipelines-integration.yml
File metadata and controls
78 lines (73 loc) · 2.86 KB
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: "c4dcd04da63379e0c4e7c0bd2fa3ef0fcf44a6c1"
# roslyn:
# _repo: "https://github.com/dotnet/roslyn"
# _repoName: "dotnet/roslyn"
# _targetSolution: "Compilers.sln"
# _branchName: "main"
# _sha: "e9ed046c159bfc5caf33b875ab6928a73c5601f3"
sdk:
_repo: "https://github.com/dotnet/sdk"
_repoName: "dotnet/sdk"
_targetSolution: "sdk.sln"
_branchName: "master"
_sha: "1404c8ebdfb5d7590fb7335e5cb5a2267de125c5"
# project-system:
# _repo: "https://github.com/dotnet/project-system"
# _repoName: "dotnet/project-system"
# _targetSolution: "ProjectSystem.sln"
# _branchName: "main"
# _sha: "33c2c7d21f18e06731b59e9b2b5788d535768e59"
# msbuild:
# _repo: "https://github.com/dotnet/msbuild"
# _repoName: "dotnet/msbuild"
# _targetSolution: "MSBuild.sln"
# _branchName: "main"
# _sha: "0be0490bd1261ff4a6ad64267879b36a63a33faf"
aspnetcore:
_repo: "https://github.com/dotnet/aspnetcore"
_repoName: "dotnet/aspnetcore"
_targetSolution: "AspNetCore.sln"
_branchName: "main"
_sha: "67f3befad2180b766ba3a1ad0eb1f37232a29b16"
efcore:
_repo: "https://github.com/dotnet/efcore"
_repoName: "dotnet/efcore"
_targetSolution: "All.sln"
_branchName: "main"
_sha: "717ee2c6e6a2bfc40a200e2adb66c6ed4180962b"
# ef6:
# _repo: "https://github.com/dotnet/ef6"
# _repoName: "dotnet/ef6"
# _targetSolution: "EntityFramework.sln"
# _branchName: "main"
# _sha: "df31fde50966a117180459313024d95c0a004162"
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