Sha256: 15f11ecc9361175ae1c5cf9344f5331d912e87e314fdc9097665d597d0a38ec8

Contents?: true

Size: 776 Bytes

Versions: 1

Compression:

Stored size: 776 Bytes

Contents

build, repository = @hash.values_at(:build, :repository)

child build => :build do
  attributes :id, :repository_id, :number, :started_at, :config

  node(:result) { build.status }

  glue build.commit do
    attributes :commit, :branch, :message, :committed_at, :committer_name, :committer_email, :author_name, :author_email, :compare_url
  end

  code :matrix do
    build.matrix.map { |job| Travis::Renderer.hash(job, :type => :event, :template => 'build/started/test', :base_dir => base_dir) } if build.respond_to?(:matrix)
  end
end

child repository => :repository do
  attributes :id, :last_build_id, :last_build_number, :last_build_started_at, :last_build_finished_at

  node(:last_build_result) { repository.last_build_status }
  node(:slug) { repository.slug }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
travis-core-0.0.1 lib/travis/notifications/pusher/views/v1/event/build/started.rabl