]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Tell Travis CI to notify the PDC WebHook
authorJeff McCune <jeff@puppetlabs.com>
Mon, 7 Jan 2013 02:45:43 +0000 (18:45 -0800)
committerJeff McCune <jeff@puppetlabs.com>
Mon, 7 Jan 2013 23:16:15 +0000 (15:16 -0800)
Without this patch the so-called "puppet development community" hook
service isn't being notified when Travis CI accepts jobs.  This is a
problem because we want the ability for Travis Bot to comment on pull
requests as a result of CI build results.  For example, if the build
fails, then Gepetto Bot could make some helpful suggestions on how to
re-run the build by amending a commit and force-pushing the branch.

This patch uses the notifications section of the travis.yml
configuration file, as documented at:
http://about.travis-ci.org/docs/user/notifications/#Webhook-notification

.travis.yml

index 529afbf399e635ff27893349458d0619ca08f94f..2a9df630fbc9ef5c5585a5abb9a9e296f9f8f38f 100644 (file)
@@ -18,3 +18,10 @@ matrix:
       env: PUPPET_GEM_VERSION="~> 2.7"
     - rvm: ruby-head
       env: PUPPET_GEM_VERSION="~> 2.7"
+notifications:
+  webhooks:
+    urls:
+      - https://puppet-dev-community.herokuapp.com/event/travis-ci/
+    on_success: always
+    on_failure: always
+    on_start: yes