Class: TravisXcodebuild::Runner

Inherits:
Object
  • Object
show all
Includes:
Logging
Defined in:
lib/travis-xcodebuild/runner.rb

Constant Summary collapse

CLANG_ISSUES_REGEX =

captures the number of files in group 1

/\((\d) commands with analyzer issues\)/
NO_FAILURES_REGEX =
/with 0 failures/
TEST_FAILED_REGEX =
/TEST FAILED/

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logging

#log_analyzer, #log_failure, #log_info, #log_success, #log_warning

Constructor Details

#initialize(options = {}) ⇒ Runner

Returns a new instance of Runner.



15
16
17
18
19
# File 'lib/travis-xcodebuild/runner.rb', line 15

def initialize(options = {})
  @output = []
  @pid = nil
  @options = options
end

Instance Attribute Details

#analyzer_alertsObject (readonly)

Returns the value of attribute analyzer_alerts.



13
14
15
# File 'lib/travis-xcodebuild/runner.rb', line 13

def analyzer_alerts
  @analyzer_alerts
end

#outputObject (readonly)

Returns the value of attribute output.



13
14
15
# File 'lib/travis-xcodebuild/runner.rb', line 13

def output
  @output
end

#stageObject (readonly)

Returns the value of attribute stage.



13
14
15
# File 'lib/travis-xcodebuild/runner.rb', line 13

def stage
  @stage
end

Instance Method Details

#runObject



35
36
37
38
# File 'lib/travis-xcodebuild/runner.rb', line 35

def run
  run_xcodebuild
  finish_build
end