class Travis::Client::Job
def allow_failures?
def allow_failures? return false unless config.include?('matrix') && config['matrix'].include?('allow_failures') config['matrix']['allow_failures'].any? do |allow| allow.all? { |key, value| config[key] == value } end end
def branch_info
def branch_info build.branch_info end
def delete_log(reason = {})
def delete_log(reason = {}) log.delete_body(reason) end
def duration
def duration attributes['duration'] ||= begin start = started_at || Time.now finish = finished_at || Time.now (finish - start).to_i end end
def inspect_info
def inspect_info "#{repository.slug}##{number}" end
def pull_request?
def pull_request? build.pull_request? end
def push?
def push? build.push? end
def pusher_channels
def pusher_channels build.pusher_channels + ["job-#{id}"] end