Skip to content

Commit

Permalink
Fix up repo preparation before verifying loc (#8132)
Browse files Browse the repository at this point in the history
and keep English.xlf on build fail
  • Loading branch information
mstv committed May 22, 2020
1 parent e5c1de6 commit 8da72f4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ build_script:
& .\cibuild.cmd -restore -build -buildNative -logFileName build.binlog
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
# if we have reset above we need to reset English xlfs, otherwise the loc verification step will fail
# if we have reset above, we need to restore the merge commit, otherwise the loc verification step will fail
# refer to https://github.com/gitextensions/gitextensions/issues/7979
if ($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) {
git reset $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT --quiet -- "GitUI/Translation/English.xlf" "GitUI/Translation/English.Plugins.xlf"
git checkout --force -- "GitUI/Translation/English.xlf" "GitUI/Translation/English.Plugins.xlf"
git config user.email "gitextensions@github.com"
git config user.name "Git Extensions"
git commit -m "restore merge commit"
}
# it would be nice to run '.\cibuild.cmd -loc -logFileName localise.binlog /p:NoBuild=true' but it doesn't work without `-build` switch :\
Expand Down Expand Up @@ -100,6 +101,11 @@ on_failure:
| ForEach-Object {
Push-AppveyorArtifact "$_"
}
- ps: |
Get-ChildItem -recurse English*.xlf -ErrorAction SilentlyContinue `
| ForEach-Object {
Push-AppveyorArtifact "$_"
}
- ps: |
Get-ChildItem -recurse artifacts\tests\TestResult.xml -ErrorAction SilentlyContinue `
| ForEach-Object {
Expand Down

0 comments on commit 8da72f4

Please sign in to comment.