From 43a8cf5f902e0f0a4afed55833fbfc85bfaeff02 Mon Sep 17 00:00:00 2001 From: Jeff McCune Date: Sun, 6 Jan 2013 18:45:43 -0800 Subject: Tell Travis CI to notify the PDC WebHook 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 529afbf..2a9df63 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 -- cgit v1.2.3 From dc04917a8e8c64ce20f21607e653b60f9ac35705 Mon Sep 17 00:00:00 2001 From: Jeff McCune Date: Mon, 7 Jan 2013 14:48:30 -0800 Subject: (maint) Update puppet version in Travis configuration Without this patch we'll test against all Puppet 3.0 versions, but not 4. This is a problem because the travis configuration should be relatively future proof to minimize surprises. This patch addresses the problem by using >= instead of ~> in the dependency specification. The patch also combines two different notification sections into a single entry. --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2a9df63..df58d5a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,13 @@ language: ruby bundler_args: --without development script: "bundle exec rake spec SPEC_OPTS='--format documentation'" -notifications: - email: false rvm: - 1.9.3 - 1.8.7 - ruby-head env: - PUPPET_GEM_VERSION="~> 2.7" - - PUPPET_GEM_VERSION="~> 3" + - PUPPET_GEM_VERSION=">= 3.0.0" matrix: allow_failures: - rvm: ruby-head @@ -19,6 +17,7 @@ matrix: - rvm: ruby-head env: PUPPET_GEM_VERSION="~> 2.7" notifications: + email: false webhooks: urls: - https://puppet-dev-community.herokuapp.com/event/travis-ci/ -- cgit v1.2.3