aboutsummaryrefslogtreecommitdiffstats
path: root/appveyor.yml
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-16 04:11:54 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-16 04:11:54 +0000
commit8ce6748fc81bdee29b5e790d5e9f8317f77a77bf (patch)
treedd079ddc30e13765658dce4e294c2b916a2f2a47 /appveyor.yml
parentf044cc1042ef7a3547fdf5f1934a3d108854870f (diff)
downloadruby-8ce6748fc81bdee29b5e790d5e9f8317f77a77bf.tar.gz
Notify AppVeyor results to multiple channels
and simplified config by using dedicated webhook URL. Sadly AppVeyor YAML does not support alias and so we need to copy-paste the request body. memo: https://slack-files2.s3-us-west-2.amazonaws.com/bot_icons/2018-02-10/314363543719_48.png is the URL used by `provider: Slack` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml76
1 files changed, 46 insertions, 30 deletions
diff --git a/appveyor.yml b/appveyor.yml
index eba8923ffc..f53b654131 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -17,36 +17,6 @@ environment:
vs: 140
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GEMS_FOR_TEST: "timezone tzinfo"
-notifications:
- - provider: Webhook
- url:
- secure: iMINHMS0nZabaDsxN9omRDsekxzVvAAzEq5ev7lN6vZ6r9zNhl3/F/7POIVyahAwVFpRDeQT/iUugpAGWmOt3eGL/lZIdqiJFZ9DjPSkP68= # #alerts
- method: POST
- # "icon_url" is the url used by `provider: Slack`
- body: >-
- {{^isPullRequest}}
- {
- "attachments": [
- {
- "title": "Build {{projectName}} {{buildVersion}} {{status}}",
- "fallback": "AppVeyor Build {{projectName}} {{buildVersion}} {{status}}",
- "title_link": "{{buildUrl}}",
- "text": "Commit <{{commitUrl}}|{{commitId}}> by {{commitAuthor}} on {{commitDate}}: _{{commitMessage}}_",
- {{#passed}}
- "color": "#44ee44"
- {{/passed}}
- {{#failed}}
- "color": "#ee4444"
- {{/failed}}
- }
- ],
- "icon_url": "https://slack-files2.s3-us-west-2.amazonaws.com/bot_icons/2018-02-10/314363543719_48.png",
- "username": "AppVeyor CI"
- }
- {{/isPullRequest}}
- on_build_success: false
- on_build_failure: true
- on_build_status_changed: true
for:
-
matrix:
@@ -143,3 +113,49 @@ for:
# separately execute tests without -j which may crash worker with -j.
- mingw32-make test-all TESTOPTS="--retry --job-status=normal --show-skip --subprocess-timeout-scale=1.5 --excludes=../ruby/test/excludes/_appveyor" TESTS="../ruby/test/win32ole ../ruby/test/open-uri/test_open-uri.rb"
- mingw32-make test-spec MSPECOPT=-fs # not using `-j` because sometimes `mspec -j` silently dies on Windows
+notifications:
+ # Using "Webhook" with templated body to skip notification on Pull Request
+ - provider: Webhook
+ method: POST
+ url:
+ secure: iMINHMS0nZabaDsxN9omRDsekxzVvAAzEq5ev7lN6vb+gUETT+rbDKLGxBxBpEpxlnPlLdzroIJ+DTKlwfJA8VkGawTn9EXNsucH0OkSf2M= # AppVeyor CI
+ body: >-
+ {{^isPullRequest}}
+ {
+ "attachments": [
+ {
+ "title": "Build {{projectName}} {{buildVersion}} {{status}}",
+ "title_link": "{{buildUrl}}",
+ "fallback": "AppVeyor Build {{projectName}} {{buildVersion}} {{status}}",
+ "color": "{{#passed}}#44ee44{{/passed}}{{#failed}}#ee4444{{/failed}}",
+ "text": "Commit <{{commitUrl}}|{{commitId}}> by {{commitAuthor}} on {{commitDate}}: _{{commitMessage}}_",
+ }
+ ],
+ "channel": "#alerts"
+ }
+ {{/isPullRequest}}
+ on_build_success: false
+ on_build_failure: true
+ on_build_status_changed: true
+ - provider: Webhook
+ method: POST
+ url:
+ secure: iMINHMS0nZabaDsxN9omRDsekxzVvAAzEq5ev7lN6vb+gUETT+rbDKLGxBxBpEpxlnPlLdzroIJ+DTKlwfJA8VkGawTn9EXNsucH0OkSf2M= # AppVeyor CI
+ body: >-
+ {{^isPullRequest}}
+ {
+ "attachments": [
+ {
+ "title": "Build {{projectName}} {{buildVersion}} {{status}}",
+ "title_link": "{{buildUrl}}",
+ "fallback": "AppVeyor Build {{projectName}} {{buildVersion}} {{status}}",
+ "color": "{{#passed}}#44ee44{{/passed}}{{#failed}}#ee4444{{/failed}}",
+ "text": "Commit <{{commitUrl}}|{{commitId}}> by {{commitAuthor}} on {{commitDate}}: _{{commitMessage}}_",
+ }
+ ],
+ "channel": "#commits"
+ }
+ {{/isPullRequest}}
+ on_build_success: false
+ on_build_failure: true
+ on_build_status_changed: true