Skip to content

Commit

Permalink
update badges
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 18, 2021
1 parent cb29107 commit bad607a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# YaST - The S390 Configuration Module

[![Travis Build](https://travis-ci.org/yast/yast-s390.svg?branch=master)](https://travis-ci.org/yast/yast-s390)
[![Code Coverage Status](
https://coveralls.io/repos/github/yast/yast-s390/badge.svg?branch=master)](https://coveralls.io/github/yast/yast-s390?branch=master)
[![Workflow Status](https://github.com/yast/yast-s390/workflows/CI/badge.svg?branch=master)](
https://github.com/yast/yast-s390/actions?query=branch%3Amaster)
[![Jenkins Status](https://ci.opensuse.org/buildStatus/icon?job=yast-yast-s390-master)](
https://ci.opensuse.org/view/Yast/job/yast-yast-s390-master/)
[![Coverage Status](https://img.shields.io/coveralls/yast/yast-s390.svg)](https://coveralls.io/r/yast/yast-s390?branch=master)

## Resources

Expand Down
18 changes: 13 additions & 5 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,24 @@
add_filter "/test/"
end

src_location = File.expand_path("../../src", __FILE__)
src_location = File.expand_path("../src", __dir__)
# track all ruby files under src
SimpleCov.track_files("#{src_location}/**/*.rb")

# use coveralls for on-line code coverage reporting at Travis CI
if ENV["TRAVIS"]
require "coveralls"
# additionally use the LCOV format for on-line code coverage reporting at CI
if ENV["CI"] || ENV["COVERAGE_LCOV"]
require "simplecov-lcov"

SimpleCov::Formatter::LcovFormatter.config do |c|
c.report_with_single_file = true
# this is the default Coveralls GitHub Action location
# https://github.com/marketplace/actions/coveralls-github-action
c.single_report_path = "coverage/lcov.info"
end

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
SimpleCov::Formatter::LcovFormatter
]
end
end
Expand Down

0 comments on commit bad607a

Please sign in to comment.