Sha256: 88402a263930f04107c4b25fd7dd855ab7afbe3798bcc59a202fa510c7291d46

Contents?: true

Size: 949 Bytes

Versions: 33

Compression:

Stored size: 949 Bytes

Contents

require_relative 'cmd_executor'

module Nixenvironment
  class Slather < CmdExecutor
    @binary_name     = 'slather'

    @config_settings = {}
    @info            = {}

    def self.coverage(workspace = nil, scheme = nil, config = nil, destination = nil, ignore_paths = nil, project = nil)
      build_args = []
      build_args << "--workspace '#{workspace}'"           if workspace.present?
      build_args << "--scheme '#{scheme}'"                 if scheme.present?
      build_args << "--configuration '#{config}'"          if config.present?
      build_args << "--output-directory '#{destination}'"  if destination.present?

      ignore_paths.each { |path|
        build_args << "--ignore \"#{path.rstrip}\"" # path contains \n at the end, we need to get rid of it
      }

      build_args << "--cobertura-xml"
      build_args << "--jenkins"
      build_args << "'#{project}'"

      execute('coverage', build_args)
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
nixenvironment-0.0.161 lib/nixenvironment/slather.rb
nixenvironment-0.0.160 lib/nixenvironment/slather.rb
nixenvironment-0.0.159 lib/nixenvironment/slather.rb
nixenvironment-0.0.158 lib/nixenvironment/slather.rb
nixenvironment-0.0.157 lib/nixenvironment/slather.rb
nixenvironment-0.0.156 lib/nixenvironment/slather.rb
nixenvironment-0.0.155 lib/nixenvironment/slather.rb
nixenvironment-0.0.154 lib/nixenvironment/slather.rb
nixenvironment-0.0.153 lib/nixenvironment/slather.rb
nixenvironment-0.0.152 lib/nixenvironment/slather.rb
nixenvironment-0.0.150 lib/nixenvironment/slather.rb
nixenvironment-0.0.148 lib/nixenvironment/slather.rb
nixenvironment-0.0.141 lib/nixenvironment/slather.rb
nixenvironment-0.0.147 lib/nixenvironment/slather.rb
nixenvironment-0.0.146 lib/nixenvironment/slather.rb
nixenvironment-0.0.145 lib/nixenvironment/slather.rb
nixenvironment-0.0.144 lib/nixenvironment/slather.rb
nixenvironment-0.0.143 lib/nixenvironment/slather.rb
nixenvironment-0.0.142 lib/nixenvironment/slather.rb
nixenvironment-0.0.138.1 lib/nixenvironment/slather.rb