Skip to content

Commit

Permalink
Merge pull request #349 from akgrant43/appveyor1
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
akgrant43 committed Jan 7, 2019
2 parents 7a3c6b6 + c3841cc commit 0fae80c
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 0fae80c

Please sign in to comment.