class Evrone::CI::Message::PerformJob

Public Class Methods

test_attributes(options = {}) click to toggle source
# File lib/evrone/ci/message/testing.rb, line 115
def test_attributes(options = {})
  key = File.read File.expand_path("../../../../../fixtures/insecure_private_key", __FILE__)
  options.merge({
    id:         options[:id]           || 1,
    name:       options[:name]         || 'evrone/test-repo',
    src:        options[:src]          || "git@github.com:evrone/ci-worker-test-repo.git",
    sha:        options[:sha]          || "b665f90239563c030f1b280a434b3d84daeda1bd",
    deploy_key: options[:deploy_key]   || key,
    job_id:     options[:job_id]       || 2,
    before_script: options[:before_script] || 'echo before_script',
    script:     options[:script]       || 'echo script',
    matrix_keys: options[:matrix_keys] || %w{ rvm:2.0.0 }
  })
end
test_message(options = {}) click to toggle source
# File lib/evrone/ci/message/testing.rb, line 138
def test_message(options = {})
  new test_attributes(options)
end
test_pull_request_attributes(options = {}) click to toggle source
# File lib/evrone/ci/message/testing.rb, line 130
def test_pull_request_attributes(options = {})
  options = {
    sha: "84158c732ff1af3db9775a37a74ddc39f5c4078f",
    pull_request_id: 4
  }.merge(options)
  test_attributes(options)
end
test_pull_request_message(options = {}) click to toggle source
# File lib/evrone/ci/message/testing.rb, line 142
def test_pull_request_message(options = {})
  new test_pull_request_attributes(options)
end