
- Re-factor - Remove code for notifications - Remove addons - Remove travis-core gem. - Ignore logs directory only - Move core tests to spec/lib
249 lines
6.5 KiB
Ruby
249 lines
6.5 KiB
Ruby
PAYLOADS = {}
|
|
|
|
PAYLOADS[:github] = {
|
|
"private-repo" => %({
|
|
"repository": {
|
|
"url": "http://github.com/svenfuchs/gem-release",
|
|
"name": "gem-release",
|
|
"private":true,
|
|
"owner": {
|
|
"email": "svenfuchs@artweb-design.de",
|
|
"name": "svenfuchs"
|
|
}
|
|
},
|
|
"commits": [{
|
|
"id": "9854592",
|
|
"message": "Bump to 0.0.15",
|
|
"timestamp": "2010-10-27 04:32:37",
|
|
"committer": {
|
|
"name": "Sven Fuchs",
|
|
"email": "svenfuchs@artweb-design.de"
|
|
},
|
|
"author": {
|
|
"name": "Christopher Floess",
|
|
"email": "chris@flooose.de"
|
|
}
|
|
}],
|
|
"ref": "refs/heads/master"
|
|
}),
|
|
|
|
"gem-release" => %({
|
|
"repository": {
|
|
"url": "http://github.com/svenfuchs/gem-release",
|
|
"name": "gem-release",
|
|
"owner": {
|
|
"email": "svenfuchs@artweb-design.de",
|
|
"name": "svenfuchs"
|
|
}
|
|
},
|
|
"commits": [{
|
|
"id": "46ebe012ef3c0be5542a2e2faafd48047127e4be",
|
|
"message": "Bump to 0.0.15",
|
|
"timestamp": "2010-10-27 04:32:37",
|
|
"committer": {
|
|
"name": "Sven Fuchs",
|
|
"email": "svenfuchs@artweb-design.de"
|
|
},
|
|
"author": {
|
|
"name": "Christopher Floess",
|
|
"email": "chris@flooose.de"
|
|
}
|
|
}],
|
|
"ref": "refs/heads/master",
|
|
"compare": "https://github.com/svenfuchs/gem-release/compare/af674bd...9854592"
|
|
}),
|
|
|
|
"gh-pages-update" => %({
|
|
"repository": {
|
|
"url": "http://github.com/svenfuchs/gem-release",
|
|
"name": "gem-release",
|
|
"owner": {
|
|
"email": "svenfuchs@artweb-design.de",
|
|
"name": "svenfuchs"
|
|
}
|
|
},
|
|
"commits": [{
|
|
"id": "9854592",
|
|
"message": "Bump to 0.0.15",
|
|
"timestamp": "2010-10-27 04:32:37",
|
|
"committer": {
|
|
"name": "Sven Fuchs",
|
|
"email": "svenfuchs@artweb-design.de"
|
|
},
|
|
"author": {
|
|
"name": "Christopher Floess",
|
|
"email": "chris@flooose.de"
|
|
}
|
|
}],
|
|
"ref": "refs/heads/gh-pages"
|
|
}),
|
|
|
|
"gh_pages-update" => %({
|
|
"repository": {
|
|
"url": "http://github.com/svenfuchs/gem-release",
|
|
"name": "gem-release",
|
|
"owner": {
|
|
"email": "svenfuchs@artweb-design.de",
|
|
"name": "svenfuchs"
|
|
}
|
|
},
|
|
"commits": [{
|
|
"id": "9854592",
|
|
"message": "Bump to 0.0.15",
|
|
"timestamp": "2010-10-27 04:32:37",
|
|
"committer": {
|
|
"name": "Sven Fuchs",
|
|
"email": "svenfuchs@artweb-design.de"
|
|
},
|
|
"author": {
|
|
"name": "Christopher Floess",
|
|
"email": "chris@flooose.de"
|
|
}
|
|
}],
|
|
"ref": "refs/heads/gh_pages"
|
|
}),
|
|
|
|
# it is unclear why this payload was send but it happened quite often. the force option
|
|
# seems to indicate something like $ git push --force
|
|
"force-no-commit" => %({
|
|
"pusher": { "name": "LTe", "email":"lite.88@gmail.com" },
|
|
"repository":{
|
|
"name":"acts-as-messageable",
|
|
"created_at":"2010/08/02 07:41:30 -0700",
|
|
"has_wiki":true,
|
|
"size":200,
|
|
"private":false,
|
|
"watchers":13,
|
|
"fork":false,
|
|
"url":"https://github.com/LTe/acts-as-messageable",
|
|
"language":"Ruby",
|
|
"pushed_at":"2011/05/31 04:16:01 -0700",
|
|
"open_issues":0,
|
|
"has_downloads":true,
|
|
"homepage":"http://github.com/LTe/acts-as-messageable",
|
|
"has_issues":true,
|
|
"forks":5,
|
|
"description":"ActsAsMessageable",
|
|
"owner": { "name":"LTe", "email":"lite.88@gmail.com" }
|
|
},
|
|
"ref_name":"v0.3.0",
|
|
"forced":true,
|
|
"after":"b842078c2f0084bb36cea76da3dad09129b3c26b",
|
|
"deleted":false,
|
|
"ref":"refs/tags/v0.3.0",
|
|
"commits":[],
|
|
"base_ref":"refs/heads/master",
|
|
"before":"0000000000000000000000000000000000000000",
|
|
"compare":"https://github.com/LTe/acts-as-messageable/compare/v0.3.0",
|
|
"created":true
|
|
}),
|
|
|
|
|
|
:hook_inactive => %({
|
|
"last_response": {
|
|
"status": "ok",
|
|
"message": "",
|
|
"code": 200
|
|
},
|
|
"config": {
|
|
"domain": "staging.travis-ci.org",
|
|
"user": "svenfuchs",
|
|
"token": "token"
|
|
},
|
|
"created_at": "2011-09-18T10:49:06Z",
|
|
"events": [
|
|
"push",
|
|
"pull_request",
|
|
"issue_comment",
|
|
"public",
|
|
"member"
|
|
],
|
|
"active": false,
|
|
"updated_at": "2012-08-09T09:32:42Z",
|
|
"name": "travis",
|
|
"_links": {
|
|
"self": {
|
|
"href": "https://api.github.com/repos/svenfuchs/minimal/hooks/77103"
|
|
}
|
|
},
|
|
"id": 77103
|
|
}),
|
|
|
|
:hook_active => %({
|
|
"last_response": {
|
|
"status": "ok",
|
|
"message": "",
|
|
"code": 200
|
|
},
|
|
"config": {
|
|
"domain": "staging.travis-ci.org",
|
|
"user": "svenfuchs",
|
|
"token": "token"
|
|
},
|
|
"created_at": "2011-09-18T10:49:06Z",
|
|
"events": [
|
|
"push",
|
|
"pull_request",
|
|
"issue_comment",
|
|
"public",
|
|
"member"
|
|
],
|
|
"active": true,
|
|
"updated_at": "2012-08-09T09:32:42Z",
|
|
"name": "travis",
|
|
"_links": {
|
|
"self": {
|
|
"href": "https://api.github.com/repos/svenfuchs/minimal/hooks/77103"
|
|
}
|
|
},
|
|
"id": 77103
|
|
}),
|
|
|
|
:oauth => {
|
|
"uid" => "234423",
|
|
"user_info" => {
|
|
"name" => "John",
|
|
"nickname" => "john",
|
|
"email" => "john@email.com"
|
|
},
|
|
"credentials" => {
|
|
"token" => "1234567890abcdefg"
|
|
}
|
|
},
|
|
|
|
:oauth_updated => {
|
|
"uid" => "234423",
|
|
"user_info" => {
|
|
"name" => "Johnathan",
|
|
"nickname" => "johnathan",
|
|
"email" => "johnathan@email.com"
|
|
},
|
|
"credentials" => {
|
|
"token" => "1234567890abcdefg"
|
|
}
|
|
}
|
|
}
|
|
|
|
PAYLOADS[:worker] = {
|
|
'job:test:started' => { 'id' => 1, 'state' => 'started', 'started_at' => '2011-01-01 00:02:00 +0200', 'worker' => 'ruby3.worker.travis-ci.org:travis-ruby-4' },
|
|
'job:test:log' => { 'id' => 1, 'log' => '... appended' },
|
|
'job:test:log:1' => { 'id' => 1, 'log' => 'the ' },
|
|
'job:test:log:2' => { 'id' => 1, 'log' => 'full ' },
|
|
'job:test:log:3' => { 'id' => 1, 'log' => 'log' },
|
|
'job:test:finished' => { 'id' => 1, 'state' => 'finished', 'finished_at' => '2011-01-01 00:03:00 +0200', 'result' => 0, 'log' => 'the full log' }
|
|
}
|
|
|
|
PAYLOADS[:queue] = {
|
|
'job:test:1' => {
|
|
:build => { :id => 2, :number => '1.1', :commit => '9854592', :branch => 'master', :config => { :rvm => '1.8.7' } },
|
|
:repository => { :id => 1, :slug => 'svenfuchs/gem-release' },
|
|
:queue => 'builds'
|
|
},
|
|
'job:test:2' => {
|
|
:build => { :id => 3, :number => '1.2', :commit => '9854592', :branch => 'master', :config => { :rvm => '1.9.2' } },
|
|
:repository => { :id => 1, :slug => 'svenfuchs/gem-release' },
|
|
:queue => 'builds'
|
|
}
|
|
}
|
|
|