Sha256: af3c46b7380e2f022ba18d9ae67ef112f31d247b1c4ff92cec3797a385789b73

Contents?: true

Size: 653 Bytes

Versions: 13

Compression:

Stored size: 653 Bytes

Contents

#!/usr/bin/env ruby

require 'pathname'
require 'coveralls'
require 'simplecov-teamcity-summary'

SimpleCov.start do
  track_files('lib/**/*.rb')

  add_filter do |file|
    relative_path = Pathname.new(file.filename)
                            .relative_path_from(Pathname.new(SimpleCov.root))
    relative_path.to_s =~ %r{^spec/}
  end

  coverage_dir('build/coverage')

  format = [::SimpleCov::Formatter::HTMLFormatter]

  format << Coveralls::SimpleCov::Formatter if Coveralls.will_run?
  format << SimpleCov::Formatter::TeamcitySummaryFormatter if ENV['TEAMCITY_PROJECT_NAME']

  formatter(::SimpleCov::Formatter::MultiFormatter.new(format))
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rake-funnel-0.24.0 .simplecov
rake-funnel-0.23.0 .simplecov
rake-funnel-0.22.3 .simplecov
rake-funnel-0.22.2 .simplecov
rake-funnel-0.22.1 .simplecov
rake-funnel-0.22.0 .simplecov
rake-funnel-0.21.2 .simplecov
rake-funnel-0.21.1 .simplecov
rake-funnel-0.21.0 .simplecov
rake-funnel-0.20.2 .simplecov
rake-funnel-0.20.1 .simplecov
rake-funnel-0.20.0 .simplecov
rake-funnel-0.19.0 .simplecov