Class: Evrone::CI::Message::BuildStatus

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

Direct Known Subclasses

JobStatus

Class Method Summary collapse

Methods included from Serializable

#to_serialized_string

Class Method Details

.test_attributes(options = {}) ⇒ Object



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/evrone/ci/message/testing.rb', line 50

def test_attributes(options = {})
  {
    build_id: 1,
    status:   0,
    tm:       1376137604,
    tm_usec:  1234,
    jobs_count: 1,
    matrix: %w{ env rvm },

    commit_author:       "Commit Author",
    commit_author_email: "[email protected]",
    commit_sha:          "d3c7576e3b84bd578ce562c6d504cc7a1233adc1",
    commit_message:      "Commit Message"
  }.merge(options)
end

.test_message(options = {}) ⇒ Object



66
67
68
# File 'lib/evrone/ci/message/testing.rb', line 66

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