Update example payloads
This commit is contained in:
parent
a18f211f6f
commit
6d0aad47ec
|
@ -9,87 +9,133 @@ class Travis::Api::App::Endpoint
|
||||||
end
|
end
|
||||||
|
|
||||||
REPOSITORY_KEY = {
|
REPOSITORY_KEY = {
|
||||||
"public_key" => "-----BEGIN RSA PUBLIC KEY-----\nMIGJAoGBAOcx131amMqIzm5+FbZz+DhIgSDbFzjKKpzaN5UWVCrLSc57z64xxTV6\nkaOTZmjCWz6WpaPkFZY+czfL7lmuZ/Y6UNm0vupvdZ6t27SytFFGd1/RJlAe89tu\nGcIrC1vtEvQu2frMLvHqFylnGd5Gy64qkQT4KRhMsfZctX4z5VzTAgMBAAE=\n-----END RSA PUBLIC KEY-----\n",
|
'public_key' => '-----BEGIN RSA PUBLIC KEY-----\nMIGJAoGBAOcx131amMqIzm5+FbZz+DhIgSDbFzjKKpzaN5UWVCrLSc57z64xxTV6\nkaOTZmjCWz6WpaPkFZY+czfL7lmuZ/Y6UNm0vupvdZ6t27SytFFGd1/RJlAe89tu\nGcIrC1vtEvQu2frMLvHqFylnGd5Gy64qkQT4KRhMsfZctX4z5VzTAgMBAAE=\n-----END RSA PUBLIC KEY-----\n',
|
||||||
}
|
}
|
||||||
|
|
||||||
REPOSITORY = {
|
REPOSITORY = {
|
||||||
"id" => 59,
|
'repo' => {
|
||||||
"slug" => "travis-ci/travis-ci",
|
'id' => 119756,
|
||||||
"description" => "A distributed build system for the open source community.",
|
'slug' => 'travis-ci/travis-api',
|
||||||
"public_key" => REPOSITORY_KEY["public_key"],
|
'description' => 'The public Travis API',
|
||||||
"last_build_id" => 3373911,
|
'last_build_id' => 6347735,
|
||||||
"last_build_number" => "2188",
|
'last_build_number' => '468',
|
||||||
"last_build_status" => 0,
|
'last_build_state' => 'started',
|
||||||
"last_build_result" => 0,
|
'last_build_duration' => nil,
|
||||||
"last_build_duration" => 221,
|
'last_build_language' => nil,
|
||||||
"last_build_language" => nil,
|
'last_build_started_at' => '2013-04-15T09:45:29Z',
|
||||||
"last_build_started_at" => "2012-11-27T01:01:28Z",
|
'last_build_finished_at' => nil,
|
||||||
"last_build_finished_at" => "2012-11-27T01:05:09Z",
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
REPOSITORIES = [REPOSITORY]
|
REPOSITORIES = { 'repos' => [ REPOSITORY['repo'] ] }
|
||||||
|
|
||||||
SHORT_BUILD = {
|
SHORT_BUILD = {
|
||||||
"id" => 3373911,
|
'id' => 6347735,
|
||||||
"repository_id" => 59,
|
'repository_id' => 119756,
|
||||||
"number" => "2188",
|
'commit_id' => 1873023,
|
||||||
"state" => "finished",
|
'number' => '468',
|
||||||
"result" => 0,
|
'pull_request' => false,
|
||||||
"started_at" => "2012-11-27T01:01:28Z",
|
'pull_request_title' => nil,
|
||||||
"finished_at" => "2012-11-27T01:05:09Z",
|
'pull_request_number' => nil,
|
||||||
"duration" => 221,
|
'config' => {
|
||||||
"commit" => "a0e4dada7eb30b41817d9d3c5222b519502ef87a",
|
'language' => 'ruby',
|
||||||
"branch" => "master",
|
'rvm' => [
|
||||||
"message" => "no need to set up services",
|
'1.9.3',
|
||||||
"event_type" => "push",
|
'rbx-19mode',
|
||||||
}
|
'jruby-19mode',
|
||||||
|
],
|
||||||
BUILDS = [
|
'before_script' => [
|
||||||
SHORT_BUILD,
|
'RAILS_ENV=test rake db:create db:schema:load --trace',
|
||||||
]
|
],
|
||||||
|
'notifications' => {
|
||||||
CONFIG = {
|
'irc' => 'irc.freenode.org#travis',
|
||||||
"language" => "ruby",
|
},
|
||||||
"rvm" => [
|
'matrix' => {
|
||||||
"1.9.3",
|
'allow_failures' => [
|
||||||
],
|
{
|
||||||
"bundler_args" => "--without development",
|
'rvm' => 'rbx-19mode',
|
||||||
"before_install" => [
|
},
|
||||||
"gem install bundler --pre",
|
{
|
||||||
],
|
'rvm' => 'jruby-19mode',
|
||||||
"before_script" => [
|
},
|
||||||
"cp config/database.example.yml config/database.yml"
|
],
|
||||||
],
|
},
|
||||||
"script" => "RAILS_ENV=test bundle exec rake test:ci --trace",
|
'.result' => 'configured',
|
||||||
"notifications" => {
|
|
||||||
"irc" => "irc.freenode.org#travis",
|
|
||||||
"campfire" => {
|
|
||||||
"secure" => "JJezWGD9KJY/LC2aznI3Zyohy31VTIhcTKX7RWR4C/C8YKbW9kZv3xV6Vn11\nSHxJTeZo6st2Bpv6tjlWZ+HCR09kyCNavIChedla3+oHOiuL0D4gSo+gkTNW\nUKYZz9mcQUd9RoQpTeyxvdvX+l7z62/7JwFA7txHOqxbTS8jrjc="
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
".result" => "configured"
|
'state' => 'passed',
|
||||||
|
'started_at' => '2013-04-15T09:45:29Z',
|
||||||
|
'finished_at' => '2013-04-15T09:49:42Z',
|
||||||
|
'duration' => 489,
|
||||||
|
'job_ids' => [
|
||||||
|
6347736,
|
||||||
|
6347737,
|
||||||
|
6347738,
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
BUILD = SHORT_BUILD.merge({
|
COMMIT = {
|
||||||
"config" => CONFIG,
|
'id' => 1873023,
|
||||||
"committed_at" => "2012-11-27T01:01:06Z",
|
'sha' => 'a18f211f6f921affd1ecd8c18691b40d9948aae5',
|
||||||
"author_name" => "Sven Fuchs",
|
'branch' => 'master',
|
||||||
"author_email" => "me@svenfuchs.com",
|
'message' => "Merge pull request #25 from henrikhodne/add-responses-to-documentation\n\nAdd responses to documentation",
|
||||||
"committer_name" => "Sven Fuchs",
|
'committed_at' => '2013-04-15T09:44:31Z',
|
||||||
"committer_email" => "me@svenfuchs.com",
|
'author_name' => 'Henrik Hodne',
|
||||||
"compare_url" => "https://github.com/travis-ci/travis-ci/compare/18b6874865f2...a0e4dada7eb3",
|
'author_email' => 'me@henrikhodne.com',
|
||||||
"matrix" => [
|
'committer_name' => 'Henrik Hodne',
|
||||||
{
|
'committer_email' => 'me@henrikhodne.com',
|
||||||
"id" => 3373912,
|
'compare_url' => 'https://github.com/travis-ci/travis-api/compare/0f31ff4fb6aa...a18f211f6f92',
|
||||||
"repository_id" => 59,
|
'pull_request_number' => nil,
|
||||||
"number" => "2188.1",
|
}
|
||||||
"config" => CONFIG,
|
|
||||||
"result" => 0,
|
BUILDS = {
|
||||||
"started_at" => "2012-11-27T01:01:28Z",
|
'builds' => [
|
||||||
"finished_at" => "2012-11-27T01:05:09Z",
|
SHORT_BUILD
|
||||||
"allow_failure" => false
|
],
|
||||||
}
|
'commits' => [
|
||||||
|
COMMIT
|
||||||
]
|
]
|
||||||
})
|
}
|
||||||
|
|
||||||
|
JOB = {
|
||||||
|
'id' => 6347736,
|
||||||
|
'repository_id' => 119756,
|
||||||
|
'build_id' => 6347735,
|
||||||
|
'commit_id' => 1873023,
|
||||||
|
'log_id' => 1219815,
|
||||||
|
'state' => 'passed',
|
||||||
|
'number' => '468.1',
|
||||||
|
'config' => {
|
||||||
|
'language' => 'ruby',
|
||||||
|
'rvm' => '1.9.3',
|
||||||
|
'before_script' => [
|
||||||
|
'RAILS_ENV=test rake db:create db:schema:load --trace',
|
||||||
|
],
|
||||||
|
'notifications' => {
|
||||||
|
'irc' => 'irc.freenode.org#travis',
|
||||||
|
},
|
||||||
|
'matrix' => {
|
||||||
|
'allow_failures' => [
|
||||||
|
{
|
||||||
|
'rvm' => 'rbx-19mode',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'rvm' => 'jruby-19mode',
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
'.result' => 'configured'
|
||||||
|
},
|
||||||
|
'started_at' => '2013-04-15T09:45:29Z',
|
||||||
|
'finished_at' => '2013-04-15T09:48:14Z',
|
||||||
|
'queue' => 'builds.linux',
|
||||||
|
'allow_failure' => false,
|
||||||
|
'tags' => '',
|
||||||
|
}
|
||||||
|
|
||||||
|
BUILD = {
|
||||||
|
'build' => SHORT_BUILD,
|
||||||
|
'commit' => COMMIT,
|
||||||
|
'jobs' => [ JOB ]
|
||||||
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user