Class: Evrone::CI::Message::PerformJob
- Inherits:
-
ProtocolBuffers::Message
- Object
- ProtocolBuffers::Message
- Evrone::CI::Message::PerformJob
- Includes:
- Serializable
- Defined in:
- lib/evrone/ci/message.rb,
lib/evrone/ci/message/testing.rb
Class Method Summary collapse
- .test_attributes(options = {}) ⇒ Object
- .test_message(options = {}) ⇒ Object
- .test_pull_request_attributes(options = {}) ⇒ Object
- .test_pull_request_message(options = {}) ⇒ Object
Methods included from Serializable
Class Method Details
.test_attributes(options = {}) ⇒ Object
115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/evrone/ci/message/testing.rb', line 115 def test_attributes( = {}) key = File.read File.("../../../../../fixtures/insecure_private_key", __FILE__) .merge({ id: [:id] || 1, name: [:name] || 'evrone/test-repo', src: [:src] || "[email protected]:evrone/ci-worker-test-repo.git", sha: [:sha] || "b665f90239563c030f1b280a434b3d84daeda1bd", deploy_key: [:deploy_key] || key, job_id: [:job_id] || 2, before_script: [:before_script] || 'echo before_script', script: [:script] || 'echo script', matrix_keys: [:matrix_keys] || %w{ rvm:2.0.0 } }) end |
.test_message(options = {}) ⇒ Object
138 139 140 |
# File 'lib/evrone/ci/message/testing.rb', line 138 def ( = {}) new test_attributes() end |
.test_pull_request_attributes(options = {}) ⇒ Object
130 131 132 133 134 135 136 |
# File 'lib/evrone/ci/message/testing.rb', line 130 def test_pull_request_attributes( = {}) = { sha: "84158c732ff1af3db9775a37a74ddc39f5c4078f", pull_request_id: 4 }.merge() test_attributes() end |
.test_pull_request_message(options = {}) ⇒ Object
142 143 144 |
# File 'lib/evrone/ci/message/testing.rb', line 142 def ( = {}) new test_pull_request_attributes() end |