From b72e8920ab0ff0ae3a214240fc1e76113070c13c Mon Sep 17 00:00:00 2001 From: Daniel Donenfeld Date: Wed, 6 Feb 2019 17:55:42 -0800 Subject: [PATCH] Add initial work checking in asm from appveyor build into branch --- appveyor.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 2fc8a16..5362e45 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,9 @@ -shallow_clone: true +branches: + only: + - master + +skip_branch_with_pr: true + platform: - x86 @@ -13,6 +18,8 @@ image: - Visual Studio 2017 environment: + access_token: + secure: JoKQ6wDekwtEk9su/zJWT12TtHMsHAacSLnPe47/SV22BAfVSMMR8VCyDF/W9bE2 matrix: - GSL_CXX_STANDARD: 14 - GSL_CXX_STANDARD: 17 @@ -47,7 +54,7 @@ before_build: $env:generator="$env:generator Win64" } echo generator="$env:generator" - cmake .. -G "$env:generator" -DGSL_CXX_STANDARD="$env:GSL_CXX_STANDARD" + cmake .. -G "$env:generator" -DGSL_CXX_STANDARD="$env:GSL_CXX_STANDARD" -DGSL_ASM_FOLDER="$($env:APPVEYOR_BUILD_WORKER_IMAGE)_$($env:GSL_CXX_STANDARD)_$($env:PLATFORM)_$($env:CONFIGURATION)" build_script: - cmake --build . --config %CONFIGURATION% -- /m /v:minimal @@ -55,4 +62,16 @@ build_script: test_script: - ctest -j2 +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" + - cd %APPVEYOR_BUILD_FOLDER% + - git checkout %APPVEYOR_REPO_BRANCH% + - git add "asm\%APPVEYOR_BUILD_WORKER_IMAGE%_%GSL_CXX_STANDARD%_%PLATFORM%_%CONFIGURATION%" + - git commit -m "[skip ci] Update ASM for %APPVEYOR_BUILD_WORKER_IMAGE%_%GSL_CXX_STANDARD%_%PLATFORM%_%CONFIGURATION%" + - git push + + deploy: off