-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
168 changed files
with
7,109 additions
and
3,766 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
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
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,29 @@ | ||
# Copyright (c) Microsoft Corporation. | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
[CmdletBinding(PositionalBinding = $False)] | ||
Param( | ||
[Parameter(Mandatory = $True)] | ||
[String]$DiffFile | ||
) | ||
|
||
Start-Process -FilePath 'git' -ArgumentList 'diff' ` | ||
-NoNewWindow -Wait ` | ||
-RedirectStandardOutput $DiffFile | ||
if (0 -ne (Get-Item -LiteralPath $DiffFile).Length) { | ||
$message = @( | ||
'##vso[task.logissue type=error]The formatting of the files in the repo was not what we expected.' | ||
'Please access the diff from format.diff in the build artifacts' | ||
'(you can download it by clicking the three dots at the right)' | ||
'and apply it with `git apply`.' | ||
'Alternatively, you can run the `format` CMake target:' | ||
' cmake --build <builddir> --target format' | ||
'' | ||
'##[group]Expected formatting - click to expand diff' | ||
Get-Content -LiteralPath $DiffFile -Raw | ||
'##[endgroup]' | ||
"##vso[artifact.upload artifactname=format.diff]$DiffFile" | ||
'##vso[task.complete result=Failed]DONE' | ||
) | ||
Write-Host ($message -join "`n") | ||
} |
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
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
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
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
Oops, something went wrong.