Skip to content

Commit

Permalink
Enable coveralls.io integration
Browse files Browse the repository at this point in the history
This also rearranges matrix entries so that the coveralls job is started
first to reduce overall latency.
  • Loading branch information
DavidS committed Jun 19, 2015
1 parent 4c37717 commit a070d0d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .travis.yml
@@ -1,15 +1,17 @@
language: ruby
cache: bundler
bundler_args: --without development

rvm:
- 2.1
- 1.8.7
- 1.9.3
- 2.0.0
- 2.1

sudo: false

env:
- PUPPET_VERSION=4.1 COVERAGE=yes
- PUPPET_VERSION=2.7
- PUPPET_VERSION=3.2
- PUPPET_VERSION=3.4
Expand All @@ -36,6 +38,15 @@ matrix:
env: PUPPET_VERSION=2.7
- rvm: 2.1
env: PUPPET_VERSION=3.2
# run Coveralls exactly once
- rvm: 1.8.7
env: PUPPET_VERSION=4.1 COVERAGE=yes
- rvm: 1.9.3
env: PUPPET_VERSION=4.1 COVERAGE=yes
- rvm: 2.0.0
env: PUPPET_VERSION=4.1 COVERAGE=yes
- rvm: 2.1
env: PUPPET_VERSION=4.1

notifications:
email:
Expand Down
7 changes: 6 additions & 1 deletion Gemfile
Expand Up @@ -9,4 +9,9 @@ gem 'rake'
gem 'rspec', rspecversion
gem 'rspec-core', rspecversion
gem 'puppet', puppetversion
gem 'pry', :group => :development

gem 'pry', :group => :development

if ENV['COVERAGE'] == 'yes'
gem 'coveralls', :require => false
end
5 changes: 5 additions & 0 deletions spec/spec_helper.rb
@@ -1,3 +1,8 @@
if ENV['COVERAGE'] == 'yes'
require 'coveralls'
Coveralls.wear!
end

require 'rspec-puppet'

RSpec.configure do |c|
Expand Down

0 comments on commit a070d0d

Please sign in to comment.