Class: Job::Test

Inherits:
Job
  • Object
show all
Includes:
Tagging, States
Defined in:
lib/travis/model/job/test.rb,
lib/travis/model/job/test/states.rb

Defined Under Namespace

Modules: States

Constant Summary

Constants included from Cleanup

Cleanup::FORCE_FINISH_MESSAGE

Class Method Summary collapse

Instance Method Summary collapse

Methods included from States

#finish, #start

Methods included from Tagging

#add_tags, rules

Methods inherited from Job

#matrix_config?, queued

Methods included from Cleanup

#enqueue, #force_finish, #requeueable?

Class Method Details

.append_log!(id, chars) ⇒ Object



8
9
10
11
# File 'lib/travis/model/job/test.rb', line 8

def append_log!(id, chars)
  job = find(id, :select => [:id, :repository_id, :owner_id, :owner_type, :state])
  job.append_log!(chars) unless job.finished?
end

Instance Method Details

#append_log!(chars) ⇒ Object



14
15
16
17
# File 'lib/travis/model/job/test.rb', line 14

def append_log!(chars)
  Artifact::Log.append(id, chars)
  super
end