mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Start updating asm process to be safe with parallel jobs. Push asm for each Job into its own branch
This commit is contained in:
parent
0a5968c1db
commit
f6d252d4a4
@ -131,13 +131,7 @@ test_script:
|
|||||||
- ctest -j2
|
- ctest -j2
|
||||||
|
|
||||||
on_success:
|
on_success:
|
||||||
- git config --global credential.helper store
|
|
||||||
- ps: Add-Content "$HOME\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
|
|
||||||
- git config --global user.email "dadonenf@microsoft.com"
|
|
||||||
- git config --global user.name "Daniel Donenfeld"
|
|
||||||
- git config --global core.autocrlf false
|
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
- cd %APPVEYOR_BUILD_FOLDER%
|
||||||
- push_asm.bat
|
- push_asm.bat
|
||||||
|
|
||||||
|
|
||||||
deploy: off
|
deploy: off
|
||||||
|
13
push_asm.bat
13
push_asm.bat
@ -1,4 +1,15 @@
|
|||||||
|
git config --global credential.helper store
|
||||||
|
powershell -command 'Add-Content "$HOME\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"' > nul 2>&1
|
||||||
|
git config --global user.email "dadonenf@microsoft.com"
|
||||||
|
git config --global user.name "Daniel Donenfeld"
|
||||||
|
git config --global core.autocrlf false
|
||||||
|
|
||||||
|
REM Get branch to check asm into
|
||||||
git checkout %APPVEYOR_REPO_BRANCH%
|
git checkout %APPVEYOR_REPO_BRANCH%
|
||||||
|
git checkout -b asm/%APPVEYOR_REPO_COMMIT%/appveyor-%APPVEYOR_JOB_NUMBER%
|
||||||
|
|
||||||
|
REM Check asm into the branch
|
||||||
git add "asm/*"
|
git add "asm/*"
|
||||||
git status
|
git status
|
||||||
git diff-index --cached --quiet --exit-code HEAD || (git commit -m "[skip ci] Update ASM for %ASM_FOLDER%" && git push)
|
git diff-index --cached --quiet --exit-code HEAD || git commit -m "[skip ci] Update ASM for %ASM_FOLDER%"
|
||||||
|
git push
|
Loading…
Reference in New Issue
Block a user