From c3841cc9fbad64fd5548a7d3f52805db1cacd5ef Mon Sep 17 00:00:00 2001 From: AlistairGrant Date: Sat, 5 Jan 2019 20:22:30 +0100 Subject: [PATCH] Modify the AppVeyor build to allow skip in commit body By default, AppVeyor only recognises [skip xxx] in the commit title. This change allows the skip messages to be placed in the commit body. Recognised keywords are: - [skip ci] - [ci skip] - [skip appveyor] - [appveyor skip] And since this doesn't affect Unix: [skip travis] --- .appveyor.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.appveyor.yml b/.appveyor.yml index cf2e79351f..8a7356dcc0 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -97,6 +97,11 @@ cache: - .thirdparty-cache install: + # Search for [appveyor skip], [skip appveyor], [skip ci] or [ci skip] and exit if found in full commit message + - ps: $commit=$env:APPVEYOR_REPO_COMMIT_MESSAGE + $env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED + - ps: If ($commit.Contains("[skip appveyor]") -Or $commit.Contains("[appveyor skip]")) { Exit-AppVeyorBuild } + - ps: $commit=$env:APPVEYOR_REPO_COMMIT_MESSAGE + $env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED + - ps: If ($commit.Contains("[skip ci]") -Or $commit.Contains("[ci skip]")) { Exit-AppVeyorBuild } - 'curl -fsSL --retry 4 -m 600 -o "setup-x86.exe" "http://cygwin.com/setup-x86.exe" ' - 'curl -fsSL --retry 4 -m 600 -o "setup-x86_64.exe" "http://cygwin.com/setup-x86_64.exe" ' - 'call scripts/installCygwin.bat %MINGW_ARCH% "%CYG_ROOT%"'