Skip to content

Commit

Permalink
Modify the AppVeyor build to allow skip in commit body
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
akgrant committed Jan 6, 2019
1 parent 7a3c6b6 commit c3841cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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%"'
Expand Down

0 comments on commit c3841cc

Please sign in to comment.