Class: Evrone::CI::Message::JobStatus

Inherits:
BuildStatus
  • Object
show all
Includes:
Serializable
Defined in:
lib/evrone/ci/message.rb,
lib/evrone/ci/message/testing.rb

Class Method Summary collapse

Methods included from Serializable

#to_serialized_string

Class Method Details

.test_attributes(options = {}) ⇒ Object



29
30
31
32
33
34
35
36
37
38
# File 'lib/evrone/ci/message/testing.rb', line 29

def test_attributes(options = {})
  {
    build_id: 1,
    job_id:   2,
    status:   0,
    tm:       1376137604,
    tm_usec:  1234,
    matrix:   ["env:FOO = 1", "rvm:1.9.3"]
  }.merge(options)
end

.test_message(options = {}) ⇒ Object



40
41
42
# File 'lib/evrone/ci/message/testing.rb', line 40

def test_message(options = {})
  new test_attributes(options)
end