aboutsummaryrefslogtreecommitdiff
path: root/.cirrus.yml
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-09-07 20:10:04 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-09-07 20:30:54 +0300
commitf78cc90524dc15c8981da2a480621c2e47e3c7dd (patch)
tree015dcf3bd261fca7189ef8712b3b962f97609892 /.cirrus.yml
parentecf580e40f607091a5e5d5fff9865237e037ea7f (diff)
ci: Fix merge_script in MSVC task
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml13
1 files changed, 5 insertions, 8 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 5105e0a490..6b8db7d6e9 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -96,17 +96,14 @@ task:
x64_NATIVE_TOOLS: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"'
IgnoreWarnIntDirInTempDetected: 'true'
merge_script:
- - ps: git config --global user.email "ci@ci.ci"
- - ps: git config --global user.name "ci"
+ - git config --global user.email "ci@ci.ci"
+ - git config --global user.name "ci"
# Windows filesystem loses the executable bit, and all of the executable
# files are considered "modified" now. It will break the following `git merge`
# command. The next two commands make git ignore this issue.
- - ps: git config core.filemode false
- - ps: git reset --hard
- - ps: if ($env:CIRRUS_PR -eq $null) { exit 0; }
- - ps: git fetch $env:CIRRUS_REPO_CLONE_URL $env:CIRRUS_BASE_BRANCH
- # Merge base to detect silent merge conflicts.
- - ps: git merge FETCH_HEAD
+ - git config core.filemode false
+ - git reset --hard
+ - PowerShell -NoLogo -Command if ($env:CIRRUS_PR -ne $null) { git fetch $env:CIRRUS_REPO_CLONE_URL $env:CIRRUS_BASE_BRANCH; git merge FETCH_HEAD; }
msvc_qt_built_cache:
folder: "%QTBASEDIR%"
reupload_on_changes: false