Skip to content

Commit 0fae80c

Browse files
authored
Merge pull request #349 from akgrant43/appveyor1
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]
2 parents 7a3c6b6 + c3841cc commit 0fae80c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.appveyor.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ cache:
9797
- .thirdparty-cache
9898

9999
install:
100+
# Search for [appveyor skip], [skip appveyor], [skip ci] or [ci skip] and exit if found in full commit message
101+
- ps: $commit=$env:APPVEYOR_REPO_COMMIT_MESSAGE + $env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED
102+
- ps: If ($commit.Contains("[skip appveyor]") -Or $commit.Contains("[appveyor skip]")) { Exit-AppVeyorBuild }
103+
- ps: $commit=$env:APPVEYOR_REPO_COMMIT_MESSAGE + $env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED
104+
- ps: If ($commit.Contains("[skip ci]") -Or $commit.Contains("[ci skip]")) { Exit-AppVeyorBuild }
100105
- 'curl -fsSL --retry 4 -m 600 -o "setup-x86.exe" "http://cygwin.com/setup-x86.exe" '
101106
- 'curl -fsSL --retry 4 -m 600 -o "setup-x86_64.exe" "http://cygwin.com/setup-x86_64.exe" '
102107
- 'call scripts/installCygwin.bat %MINGW_ARCH% "%CYG_ROOT%"'

0 commit comments

Comments
 (0)