mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Update appveyor job to checkin asm to branch per job. Add deployment to merge all branches into master in one step
This commit is contained in:
parent
dbb3e8d8c6
commit
4b0ffca4d8
26
appveyor.yml
26
appveyor.yml
@ -20,6 +20,11 @@ image:
|
|||||||
environment:
|
environment:
|
||||||
access_token:
|
access_token:
|
||||||
secure: JoKQ6wDekwtEk9su/zJWT12TtHMsHAacSLnPe47/SV22BAfVSMMR8VCyDF/W9bE2
|
secure: JoKQ6wDekwtEk9su/zJWT12TtHMsHAacSLnPe47/SV22BAfVSMMR8VCyDF/W9bE2
|
||||||
|
APPVEYOR_API_TOKEN:
|
||||||
|
secure: JwBE1w4itlwjHKNDVnG+frRTexCT0x6e3iF6Qsw2Ov4=
|
||||||
|
TRAVIS_API_TOKEN:
|
||||||
|
secure: 1U+1NKVIjalxvmkEm9XYMaIrya5yc/rDw9yowBcSbuw=
|
||||||
|
TIMEOUT_MINS: 10
|
||||||
NINJA_TAG: v1.8.2
|
NINJA_TAG: v1.8.2
|
||||||
NINJA_SHA512: 9B9CE248240665FCD6404B989F3B3C27ED9682838225E6DC9B67B551774F251E4FF8A207504F941E7C811E7A8BE1945E7BCB94472A335EF15E23A0200A32E6D5
|
NINJA_SHA512: 9B9CE248240665FCD6404B989F3B3C27ED9682838225E6DC9B67B551774F251E4FF8A207504F941E7C811E7A8BE1945E7BCB94472A335EF15E23A0200A32E6D5
|
||||||
NINJA_PATH: C:\Tools\ninja\ninja-%NINJA_TAG%
|
NINJA_PATH: C:\Tools\ninja\ninja-%NINJA_TAG%
|
||||||
@ -130,12 +135,17 @@ build_script:
|
|||||||
test_script:
|
test_script:
|
||||||
- ctest -j2
|
- ctest -j2
|
||||||
|
|
||||||
on_success:
|
before_deploy:
|
||||||
- git config --global credential.helper store
|
- ps: |
|
||||||
- ps: powershell -command 'Add-Content "$HOME\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"'
|
if($env:APPVEYOR_PULL_REQUEST_NUMBER -eq "") {
|
||||||
- git config --global user.email "dadonenf@microsoft.com"
|
# Only push asm during CI. Credentials are not available during a PR
|
||||||
- git config --global user.name "Daniel Donenfeld"
|
git config --global credential.helper store
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
Add-Content "$HOME\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n" | Out-Null
|
||||||
- push_asm.bat
|
git config --global user.email "dadonenf@microsoft.com"
|
||||||
|
git config --global user.name "Daniel Donenfeld"
|
||||||
|
cd %APPVEYOR_BUILD_FOLDER%
|
||||||
|
push_asm.bat
|
||||||
|
}
|
||||||
|
|
||||||
deploy: off
|
deploy_script:
|
||||||
|
- ps: '& "deploy-asm.ps1"'
|
||||||
|
@ -2,7 +2,7 @@ git config --global core.autocrlf false
|
|||||||
|
|
||||||
REM Get branch to check asm into
|
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%
|
git checkout -b asm/%APPVEYOR_REPO_COMMIT%/appveyor-%APPVEYOR_JOB_ID%
|
||||||
|
|
||||||
REM Check asm into the branch
|
REM Check asm into the branch
|
||||||
git add "asm/*"
|
git add "asm/*"
|
||||||
|
Loading…
Reference in New Issue
Block a user