Permalink
Browse files

Add Coveralls reporting

  • Loading branch information...
mvidner committed Jun 11, 2015
1 parent f2cab73 commit c9f66a7734a3aba70237876f073e3ec75c39af85
Showing with 17 additions and 2 deletions.
  1. +1 −0 .coveralls.yml
  2. +2 −2 .travis.yml
  3. +5 −0 README.md
  4. +9 −0 test/test_helper.rb
View
@@ -0,0 +1 @@
service_name: travis-ci
View
@@ -5,12 +5,12 @@ before_install:
# disable rvm, use system Ruby
- rvm reset
- wget https://raw.githubusercontent.com/yast/yast-devtools/SLE-12-GA/travis-tools/travis_setup.sh
- sh ./travis_setup.sh -p "rake yast2-devtools yast2-testsuite yast2" -g "rspec:2.14.1 yast-rake gettext"
- sh ./travis_setup.sh -p "rake yast2-devtools yast2-testsuite yast2" -g "rspec:2.14.1 yast-rake gettext simplecov coveralls"
script:
- rake check:syntax
- rake check:pot
- make -f Makefile.cvs
- make
- sudo make install
- make check
- COVERAGE=1 make check
View
@@ -0,0 +1,5 @@
# YaST - Proxy Module #
[![Travis Build](https://travis-ci.org/yast/yast-proxy.svg?branch=master)](https://travis-ci.org/yast/yast-proxy)
[![Jenkins Build](http://img.shields.io/jenkins/s/https/ci.opensuse.org/yast-proxy-master.svg)](https://ci.opensuse.org/view/Yast/job/yast-proxy-master/)
[![Coverage Status](https://img.shields.io/coveralls/yast/yast-proxy.svg)](https://coveralls.io/r/yast/yast-proxy?branch=master)
View
@@ -16,6 +16,15 @@
Dir["#{src_location}/{include,modules}/**/*.rb"].each do |f|
require_relative f
end
# use coveralls for on-line code coverage reporting at Travis CI
if ENV["TRAVIS"]
require "coveralls"
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
end
end
require_relative "matchers"

0 comments on commit c9f66a7

Please sign in to comment.