Skip to content

Commit 0067647

Browse files
author
Bart Koelman
committed
testing commit hashes
1 parent bb61e9e commit 0067647

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Build.ps1

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,22 @@ function RunCleanupCode {
3939
# When running in cibuild for a pull request, this reformats only the files changed in the PR and fails if the reformat produces changes.
4040

4141
if ($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) {
42-
Write-Output "Running code cleanup in cibuild for pull request"
42+
Write-Output "Running code cleanup on changed files in pull request"
4343

4444
$sourceCommitHash = $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT
4545
$targetCommitHash = git rev-parse "$env:APPVEYOR_REPO_BRANCH"
4646

4747
Write-Output "Source commit hash = $sourceCommitHash"
4848
Write-Output "Target commit hash = $targetCommitHash"
4949

50+
51+
$mergeCommitHash = git rev-parse "HEAD"
52+
Write-Output "mergeCommitHash = $mergeCommitHash"
53+
54+
$altMergeCommitHash = git rev-parse "$env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH"
55+
Write-Output "altMergeCommitHash = $altMergeCommitHash"
56+
57+
5058
dotnet regitlint -s JsonApiDotNetCore.sln --print-command --jb --profile --jb --profile='\"JADNC Full Cleanup\"' --jb --properties:Configuration=Release --jb --verbosity=WARN -f commits -a $sourceCommitHash -b $targetCommitHash --fail-on-diff --print-diff
5159
CheckLastExitCode
5260
}
@@ -99,7 +107,7 @@ CheckLastExitCode
99107
dotnet build -c Release
100108
CheckLastExitCode
101109

102-
RunInspectCode
110+
#RunInspectCode
103111
RunCleanupCode
104112

105113
dotnet test -c Release --no-build --collect:"XPlat Code Coverage"

0 commit comments

Comments
 (0)