mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Merge all branches into APPVEYOR_REPO_BRANCH instead of master in case otehr development branches are used. Try checking out APPVEYOR_REPO_BRANCH before collecting asm
This commit is contained in:
parent
560a596cf8
commit
c1697529d2
@ -2,6 +2,8 @@
|
|||||||
. $PSScriptRoot\API-Functions.ps1
|
. $PSScriptRoot\API-Functions.ps1
|
||||||
|
|
||||||
function collectAsm {
|
function collectAsm {
|
||||||
|
cmd.exe /c "git checkout $($env:APPVEYOR_REPO_BRANCH) 2>&1"
|
||||||
|
|
||||||
# Create branch to merge asm into
|
# Create branch to merge asm into
|
||||||
git fetch --all 2>&1
|
git fetch --all 2>&1
|
||||||
|
|
||||||
@ -33,8 +35,8 @@ function collectAsm {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#Merge all branches into master
|
#Merge all branches into $($env:APPVEYOR_REPO_BRANCH)
|
||||||
cmd.exe /c "git checkout master 2>&1"
|
cmd.exe /c "git checkout $($env:APPVEYOR_REPO_BRANCH) 2>&1"
|
||||||
cmd.exe /c "git merge --squash $($asmFinalBranch) 2>&1"
|
cmd.exe /c "git merge --squash $($asmFinalBranch) 2>&1"
|
||||||
if(-not $?){
|
if(-not $?){
|
||||||
throw "Failed merge"
|
throw "Failed merge"
|
||||||
|
Loading…
Reference in New Issue
Block a user