diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..9160059 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +service_name: travis-ci diff --git a/.travis.yml b/.travis.yml index db51a77..ede1921 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ script: - "rake lint" - "rake --trace spec" + - "rake coveralls:push" matrix: exclude: - rvm: 1.9.3 diff --git a/Rakefile b/Rakefile index 14f1c24..71fd2d9 100644 --- a/Rakefile +++ b/Rakefile @@ -1,2 +1,7 @@ require 'rubygems' require 'puppetlabs_spec_helper/rake_tasks' + +if RUBY_VERSION.to_f >= 1.9 + require 'coveralls/rake/task' + Coveralls::RakeTask.new +end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index aee56d1..5473a52 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,6 +1,6 @@ if RUBY_VERSION.to_f >= 1.9 require 'coveralls' - Coveralls.wear! + Coveralls.wear_merged! end require 'rubygems'