capistrano-ci 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.travis.yml +14 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +76 -0
  7. data/Rakefile +11 -0
  8. data/capistrano-ci.gemspec +31 -0
  9. data/lib/capistrano/ci/client.rb +37 -0
  10. data/lib/capistrano/ci/clients/base.rb +34 -0
  11. data/lib/capistrano/ci/clients/travis.rb +36 -0
  12. data/lib/capistrano/ci/clients/travis_pro.rb +15 -0
  13. data/lib/capistrano/ci/recipes.rb +19 -0
  14. data/lib/capistrano/ci/version.rb +5 -0
  15. data/lib/capistrano/ci.rb +5 -0
  16. data/spec/capistrano/ci/client_spec.rb +81 -0
  17. data/spec/capistrano/ci/clients/base_spec.rb +15 -0
  18. data/spec/capistrano/ci/clients/travis_pro_spec.rb +46 -0
  19. data/spec/capistrano/ci/clients/travis_spec.rb +43 -0
  20. data/spec/spec_helper.rb +25 -0
  21. data/spec/vcr/Capistrano_CI_Clients_Travis/_passed_/when_failed/.yml +122 -0
  22. data/spec/vcr/Capistrano_CI_Clients_Travis/_passed_/when_passed/.yml +126 -0
  23. data/spec/vcr/Capistrano_CI_Clients_Travis/_state/when_failed/.yml +122 -0
  24. data/spec/vcr/Capistrano_CI_Clients_Travis/_state/when_passed/.yml +126 -0
  25. data/spec/vcr/Capistrano_CI_Clients_Travis/_state/when_repository_was_not_found/.yml +50 -0
  26. data/spec/vcr/Capistrano_CI_Clients_TravisPro/_passed_/when_not_passed/.yml +114 -0
  27. data/spec/vcr/Capistrano_CI_Clients_TravisPro/_passed_/when_passed/.yml +115 -0
  28. data/spec/vcr/Capistrano_CI_Clients_TravisPro/_state/when_not_passed/.yml +114 -0
  29. data/spec/vcr/Capistrano_CI_Clients_TravisPro/_state/when_passed/.yml +115 -0
  30. data/spec/vcr/Capistrano_CI_Clients_TravisPro/_state/when_repository_was_not_found/.yml +42 -0
  31. metadata +200 -0
@@ -0,0 +1,126 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.travis-ci.org/repos/rails/rails
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; version=2
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Access-Control-Allow-Credentials:
18
+ - 'true'
19
+ Access-Control-Allow-Origin:
20
+ - ! '*'
21
+ Access-Control-Expose-Headers:
22
+ - Content-Type, Cache-Control, Expires, Etag, Last-Modified
23
+ Age:
24
+ - '0'
25
+ Cache-Control:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json;charset=utf-8
29
+ Date:
30
+ - Sat, 19 Oct 2013 08:57:25 GMT
31
+ Etag:
32
+ - ! '"7e14dca3cc77b42dd6088a8fa2ae950b"'
33
+ Server:
34
+ - nginx/1.5.2
35
+ Status:
36
+ - 200 OK
37
+ Strict-Transport-Security:
38
+ - max-age=31536000
39
+ Vary:
40
+ - Accept,Accept-Encoding
41
+ X-Accepted-Oauth-Scopes:
42
+ - public
43
+ X-Content-Digest:
44
+ - 3c97c9e10513f412d2e9d4380ae1f67e9b0c2aac
45
+ X-Endpoint:
46
+ - Travis::Api::App::Endpoint::Repos
47
+ X-Oauth-Scopes:
48
+ - public
49
+ X-Pattern:
50
+ - /:owner_name/:name
51
+ X-Rack-Cache:
52
+ - miss, store
53
+ Content-Length:
54
+ - '308'
55
+ Connection:
56
+ - keep-alive
57
+ body:
58
+ encoding: US-ASCII
59
+ string: ! '{"repo":{"id":891,"slug":"rails/rails","description":"Ruby on Rails","last_build_id":12751152,"last_build_number":"11026","last_build_state":"started","last_build_duration":null,"last_build_language":null,"last_build_started_at":"2013-10-19T08:50:23Z","last_build_finished_at":null,"github_language":"Ruby"}}'
60
+ http_version:
61
+ recorded_at: Sat, 19 Oct 2013 08:57:30 GMT
62
+ - request:
63
+ method: get
64
+ uri: https://api.travis-ci.org/repos/891/branches/master
65
+ body:
66
+ encoding: US-ASCII
67
+ string: ''
68
+ headers:
69
+ Accept:
70
+ - application/json; version=2
71
+ response:
72
+ status:
73
+ code: 200
74
+ message: OK
75
+ headers:
76
+ Access-Control-Allow-Credentials:
77
+ - 'true'
78
+ Access-Control-Allow-Origin:
79
+ - ! '*'
80
+ Access-Control-Expose-Headers:
81
+ - Content-Type, Cache-Control, Expires, Etag, Last-Modified
82
+ Age:
83
+ - '0'
84
+ Cache-Control:
85
+ - no-cache
86
+ Content-Type:
87
+ - application/json;charset=utf-8
88
+ Date:
89
+ - Sat, 19 Oct 2013 08:57:27 GMT
90
+ Etag:
91
+ - ! '"7160009bce524a384403a2c66bec49b4"'
92
+ Server:
93
+ - nginx/1.5.2
94
+ Status:
95
+ - 200 OK
96
+ Strict-Transport-Security:
97
+ - max-age=31536000
98
+ Vary:
99
+ - Accept,Accept-Encoding
100
+ X-Accepted-Oauth-Scopes:
101
+ - public
102
+ X-Content-Digest:
103
+ - ff1abe891a5a8148bfdfe458b057ecf04d364bd9
104
+ X-Endpoint:
105
+ - Travis::Api::App::Endpoint::Repos
106
+ X-Oauth-Scopes:
107
+ - public
108
+ X-Pattern:
109
+ - /:repository_id/branches/:branch
110
+ X-Rack-Cache:
111
+ - miss, store
112
+ Content-Length:
113
+ - '1731'
114
+ Connection:
115
+ - keep-alive
116
+ body:
117
+ encoding: US-ASCII
118
+ string: ! '{"branch":{"id":12719548,"repository_id":891,"commit_id":3729815,"number":"11020","config":{"script":"ci/travis.rb","before_install":["travis_retry
119
+ gem install bundler"],"rvm":["1.9.3","2.0.0","jruby-head","rbx-19mode"],"env":["GEM=railties","GEM=ap,am,amo,as,av","GEM=ar:mysql","GEM=ar:mysql2","GEM=ar:sqlite3","GEM=ar:postgresql"],"matrix":{"allow_failures":[{"rvm":"jruby-head"},{"rvm":"rbx-19mode"}]},"notifications":{"email":false,"irc":{"on_success":"change","on_failure":"always","channels":["irc.freenode.org#rails-contrib"]},"campfire":{"on_success":"change","on_failure":"always","rooms":[{"secure":"YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},"bundler_args":"--path
120
+ vendor/bundle --without test",".result":"configured"},"state":"passed","started_at":"2013-10-18T16:30:29Z","finished_at":"2013-10-18T16:51:44Z","duration":31114,"job_ids":[12719549,12719550,12719551,12719552,12719553,12719554,12719555,12719556,12719557,12719558,12719559,12719560,12719561,12719562,12719563,12719564,12719565,12719566,12719567,12719568,12719569,12719570,12719571,12719572],"pull_request":false},"commit":{"id":3729815,"sha":"7ec3f354958ef1709f1543b16fea5131b516f3cf","branch":"master","message":"Merge
121
+ pull request #11839 from chocoby/fix/convert_port_number\n\nConvert Fixnum
122
+ into String the port number like `db:structure:dump` task in MySQL.","committed_at":"2013-10-18T14:15:31Z","author_name":"Yves
123
+ Senn","author_email":"yves.senn@gmail.com","committer_name":"Yves Senn","committer_email":"yves.senn@gmail.com","compare_url":"https://github.com/rails/rails/compare/6c2810b8ed69...7ec3f354958e"}}'
124
+ http_version:
125
+ recorded_at: Sat, 19 Oct 2013 08:57:32 GMT
126
+ recorded_with: VCR 2.6.0
@@ -0,0 +1,122 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.travis-ci.org/repos/railsware/zero_deploy
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; version=2
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Access-Control-Allow-Credentials:
18
+ - 'true'
19
+ Access-Control-Allow-Origin:
20
+ - ! '*'
21
+ Access-Control-Expose-Headers:
22
+ - Content-Type, Cache-Control, Expires, Etag, Last-Modified
23
+ Age:
24
+ - '0'
25
+ Cache-Control:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json;charset=utf-8
29
+ Date:
30
+ - Sat, 19 Oct 2013 08:57:43 GMT
31
+ Etag:
32
+ - ! '"239eb3427e8c413b25e58cba9ffe5b3d"'
33
+ Server:
34
+ - nginx/1.5.2
35
+ Status:
36
+ - 200 OK
37
+ Strict-Transport-Security:
38
+ - max-age=31536000
39
+ Vary:
40
+ - Accept,Accept-Encoding
41
+ X-Accepted-Oauth-Scopes:
42
+ - public
43
+ X-Content-Digest:
44
+ - 1683464301ae074e6fed5351396dda29178dc27f
45
+ X-Endpoint:
46
+ - Travis::Api::App::Endpoint::Repos
47
+ X-Oauth-Scopes:
48
+ - public
49
+ X-Pattern:
50
+ - /:owner_name/:name
51
+ X-Rack-Cache:
52
+ - miss, store
53
+ Content-Length:
54
+ - '318'
55
+ Connection:
56
+ - keep-alive
57
+ body:
58
+ encoding: US-ASCII
59
+ string: ! '{"repo":{"id":544757,"slug":"railsware/zero_deploy","description":"","last_build_id":5983202,"last_build_number":"2","last_build_state":"failed","last_build_duration":31,"last_build_language":null,"last_build_started_at":"2013-04-02T11:13:13Z","last_build_finished_at":"2013-04-02T11:13:30Z","github_language":"Ruby"}}'
60
+ http_version:
61
+ recorded_at: Sat, 19 Oct 2013 08:57:48 GMT
62
+ - request:
63
+ method: get
64
+ uri: https://api.travis-ci.org/repos/544757/branches/master
65
+ body:
66
+ encoding: US-ASCII
67
+ string: ''
68
+ headers:
69
+ Accept:
70
+ - application/json; version=2
71
+ response:
72
+ status:
73
+ code: 200
74
+ message: OK
75
+ headers:
76
+ Access-Control-Allow-Credentials:
77
+ - 'true'
78
+ Access-Control-Allow-Origin:
79
+ - ! '*'
80
+ Access-Control-Expose-Headers:
81
+ - Content-Type, Cache-Control, Expires, Etag, Last-Modified
82
+ Age:
83
+ - '0'
84
+ Cache-Control:
85
+ - no-cache
86
+ Content-Type:
87
+ - application/json;charset=utf-8
88
+ Date:
89
+ - Sat, 19 Oct 2013 08:57:44 GMT
90
+ Etag:
91
+ - ! '"8112a97fe15ce9bfbe1191c9368b5ae1"'
92
+ Server:
93
+ - nginx/1.5.2
94
+ Status:
95
+ - 200 OK
96
+ Strict-Transport-Security:
97
+ - max-age=31536000
98
+ Vary:
99
+ - Accept,Accept-Encoding
100
+ X-Accepted-Oauth-Scopes:
101
+ - public
102
+ X-Content-Digest:
103
+ - 9899e89a9ea15351cbc404d88f816de9910373b0
104
+ X-Endpoint:
105
+ - Travis::Api::App::Endpoint::Repos
106
+ X-Oauth-Scopes:
107
+ - public
108
+ X-Pattern:
109
+ - /:repository_id/branches/:branch
110
+ X-Rack-Cache:
111
+ - miss, store
112
+ Content-Length:
113
+ - '700'
114
+ Connection:
115
+ - keep-alive
116
+ body:
117
+ encoding: US-ASCII
118
+ string: ! '{"branch":{"id":5983202,"repository_id":544757,"commit_id":1766529,"number":"2","config":{"language":"ruby","rvm":["1.9.3","2.0.0"],".result":"configured"},"state":"failed","started_at":"2013-04-02T11:13:13Z","finished_at":"2013-04-02T11:13:30Z","duration":31,"job_ids":[5983203,5983204],"pull_request":false},"commit":{"id":1766529,"sha":"ef87117a529b2e20a34d9ddbdee82c6baf906abd","branch":"master","message":"CI
119
+ status added","committed_at":"2013-04-02T11:10:49Z","author_name":"gregolsen","author_email":"anotheroneman@yahoo.com","committer_name":"gregolsen","committer_email":"anotheroneman@yahoo.com","compare_url":"https://github.com/railsware/zero_deploy/compare/0a2aaa3d7050...ef87117a529b"}}'
120
+ http_version:
121
+ recorded_at: Sat, 19 Oct 2013 08:57:48 GMT
122
+ recorded_with: VCR 2.6.0
@@ -0,0 +1,126 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.travis-ci.org/repos/rails/rails
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; version=2
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Access-Control-Allow-Credentials:
18
+ - 'true'
19
+ Access-Control-Allow-Origin:
20
+ - ! '*'
21
+ Access-Control-Expose-Headers:
22
+ - Content-Type, Cache-Control, Expires, Etag, Last-Modified
23
+ Age:
24
+ - '0'
25
+ Cache-Control:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json;charset=utf-8
29
+ Date:
30
+ - Sat, 19 Oct 2013 08:57:29 GMT
31
+ Etag:
32
+ - ! '"7e14dca3cc77b42dd6088a8fa2ae950b"'
33
+ Server:
34
+ - nginx/1.5.2
35
+ Status:
36
+ - 200 OK
37
+ Strict-Transport-Security:
38
+ - max-age=31536000
39
+ Vary:
40
+ - Accept,Accept-Encoding
41
+ X-Accepted-Oauth-Scopes:
42
+ - public
43
+ X-Content-Digest:
44
+ - 3c97c9e10513f412d2e9d4380ae1f67e9b0c2aac
45
+ X-Endpoint:
46
+ - Travis::Api::App::Endpoint::Repos
47
+ X-Oauth-Scopes:
48
+ - public
49
+ X-Pattern:
50
+ - /:owner_name/:name
51
+ X-Rack-Cache:
52
+ - stale, valid, store
53
+ Content-Length:
54
+ - '308'
55
+ Connection:
56
+ - keep-alive
57
+ body:
58
+ encoding: US-ASCII
59
+ string: ! '{"repo":{"id":891,"slug":"rails/rails","description":"Ruby on Rails","last_build_id":12751152,"last_build_number":"11026","last_build_state":"started","last_build_duration":null,"last_build_language":null,"last_build_started_at":"2013-10-19T08:50:23Z","last_build_finished_at":null,"github_language":"Ruby"}}'
60
+ http_version:
61
+ recorded_at: Sat, 19 Oct 2013 08:57:34 GMT
62
+ - request:
63
+ method: get
64
+ uri: https://api.travis-ci.org/repos/891/branches/master
65
+ body:
66
+ encoding: US-ASCII
67
+ string: ''
68
+ headers:
69
+ Accept:
70
+ - application/json; version=2
71
+ response:
72
+ status:
73
+ code: 200
74
+ message: OK
75
+ headers:
76
+ Access-Control-Allow-Credentials:
77
+ - 'true'
78
+ Access-Control-Allow-Origin:
79
+ - ! '*'
80
+ Access-Control-Expose-Headers:
81
+ - Content-Type, Cache-Control, Expires, Etag, Last-Modified
82
+ Age:
83
+ - '0'
84
+ Cache-Control:
85
+ - no-cache
86
+ Content-Type:
87
+ - application/json;charset=utf-8
88
+ Date:
89
+ - Sat, 19 Oct 2013 08:57:30 GMT
90
+ Etag:
91
+ - ! '"7160009bce524a384403a2c66bec49b4"'
92
+ Server:
93
+ - nginx/1.5.2
94
+ Status:
95
+ - 200 OK
96
+ Strict-Transport-Security:
97
+ - max-age=31536000
98
+ Vary:
99
+ - Accept,Accept-Encoding
100
+ X-Accepted-Oauth-Scopes:
101
+ - public
102
+ X-Content-Digest:
103
+ - ff1abe891a5a8148bfdfe458b057ecf04d364bd9
104
+ X-Endpoint:
105
+ - Travis::Api::App::Endpoint::Repos
106
+ X-Oauth-Scopes:
107
+ - public
108
+ X-Pattern:
109
+ - /:repository_id/branches/:branch
110
+ X-Rack-Cache:
111
+ - stale, valid, store
112
+ Content-Length:
113
+ - '1731'
114
+ Connection:
115
+ - keep-alive
116
+ body:
117
+ encoding: US-ASCII
118
+ string: ! '{"branch":{"id":12719548,"repository_id":891,"commit_id":3729815,"number":"11020","config":{"script":"ci/travis.rb","before_install":["travis_retry
119
+ gem install bundler"],"rvm":["1.9.3","2.0.0","jruby-head","rbx-19mode"],"env":["GEM=railties","GEM=ap,am,amo,as,av","GEM=ar:mysql","GEM=ar:mysql2","GEM=ar:sqlite3","GEM=ar:postgresql"],"matrix":{"allow_failures":[{"rvm":"jruby-head"},{"rvm":"rbx-19mode"}]},"notifications":{"email":false,"irc":{"on_success":"change","on_failure":"always","channels":["irc.freenode.org#rails-contrib"]},"campfire":{"on_success":"change","on_failure":"always","rooms":[{"secure":"YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="}]}},"bundler_args":"--path
120
+ vendor/bundle --without test",".result":"configured"},"state":"passed","started_at":"2013-10-18T16:30:29Z","finished_at":"2013-10-18T16:51:44Z","duration":31114,"job_ids":[12719549,12719550,12719551,12719552,12719553,12719554,12719555,12719556,12719557,12719558,12719559,12719560,12719561,12719562,12719563,12719564,12719565,12719566,12719567,12719568,12719569,12719570,12719571,12719572],"pull_request":false},"commit":{"id":3729815,"sha":"7ec3f354958ef1709f1543b16fea5131b516f3cf","branch":"master","message":"Merge
121
+ pull request #11839 from chocoby/fix/convert_port_number\n\nConvert Fixnum
122
+ into String the port number like `db:structure:dump` task in MySQL.","committed_at":"2013-10-18T14:15:31Z","author_name":"Yves
123
+ Senn","author_email":"yves.senn@gmail.com","committer_name":"Yves Senn","committer_email":"yves.senn@gmail.com","compare_url":"https://github.com/rails/rails/compare/6c2810b8ed69...7ec3f354958e"}}'
124
+ http_version:
125
+ recorded_at: Sat, 19 Oct 2013 08:57:35 GMT
126
+ recorded_with: VCR 2.6.0
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.travis-ci.org/repos/rails/some_strange_repo
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; version=2
12
+ response:
13
+ status:
14
+ code: 404
15
+ message: Not Found
16
+ headers:
17
+ Cache-Control:
18
+ - no-cache
19
+ Content-Type:
20
+ - application/json;charset=utf-8
21
+ Date:
22
+ - Sat, 19 Oct 2013 08:57:44 GMT
23
+ Server:
24
+ - nginx/1.5.2
25
+ Status:
26
+ - 404 Not Found
27
+ Strict-Transport-Security:
28
+ - max-age=31536000
29
+ Vary:
30
+ - Accept,Accept-Encoding
31
+ X-Accepted-Oauth-Scopes:
32
+ - public
33
+ X-Endpoint:
34
+ - Travis::Api::App::Endpoint::Repos
35
+ X-Oauth-Scopes:
36
+ - public
37
+ X-Pattern:
38
+ - /:owner_name/:name
39
+ X-Rack-Cache:
40
+ - miss
41
+ Content-Length:
42
+ - '20'
43
+ Connection:
44
+ - keep-alive
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"file":"not found"}'
48
+ http_version:
49
+ recorded_at: Sat, 19 Oct 2013 08:57:49 GMT
50
+ recorded_with: VCR 2.6.0
@@ -0,0 +1,114 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.travis-ci.com/repos/rails/rails-private
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; version=2
12
+ Authorization:
13
+ - token secret_token
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Access-Control-Allow-Credentials:
20
+ - 'true'
21
+ Access-Control-Allow-Origin:
22
+ - ! '*'
23
+ Access-Control-Expose-Headers:
24
+ - Content-Type, Cache-Control, Expires, Etag, Last-Modified
25
+ Cache-Control:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json;charset=utf-8
29
+ Date:
30
+ - Sat, 19 Oct 2013 09:13:45 GMT
31
+ Etag:
32
+ - ! '"7c2fa1741ca4c87a5bc1846fada825af"'
33
+ Server:
34
+ - nginx/1.5.2
35
+ Status:
36
+ - 200 OK
37
+ Strict-Transport-Security:
38
+ - max-age=31536000
39
+ Vary:
40
+ - Accept,Authorization,Accept-Encoding
41
+ X-Accepted-Oauth-Scopes:
42
+ - private
43
+ X-Endpoint:
44
+ - Travis::Pro::Api::Endpoint::Repos
45
+ X-Oauth-Scopes:
46
+ - public,private
47
+ X-Pattern:
48
+ - /:owner_name/:name
49
+ Content-Length:
50
+ - '308'
51
+ Connection:
52
+ - keep-alive
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ! '{"repo":{"id":95390,"slug":"rails/rails-private","description":"","last_build_id":1443071,"last_build_number":"641","last_build_state":"started","last_build_duration":null,"last_build_language":null,"last_build_started_at":"2013-10-19T09:13:35Z","last_build_finished_at":null,"github_language":"Ruby"}}'
56
+ http_version:
57
+ recorded_at: Sat, 19 Oct 2013 09:13:50 GMT
58
+ - request:
59
+ method: get
60
+ uri: https://api.travis-ci.com/repos/95390/branches/events-framework
61
+ body:
62
+ encoding: US-ASCII
63
+ string: ''
64
+ headers:
65
+ Accept:
66
+ - application/json; version=2
67
+ Authorization:
68
+ - token secret_token
69
+ response:
70
+ status:
71
+ code: 200
72
+ message: OK
73
+ headers:
74
+ Access-Control-Allow-Credentials:
75
+ - 'true'
76
+ Access-Control-Allow-Origin:
77
+ - ! '*'
78
+ Access-Control-Expose-Headers:
79
+ - Content-Type, Cache-Control, Expires, Etag, Last-Modified
80
+ Cache-Control:
81
+ - no-cache
82
+ Content-Type:
83
+ - application/json;charset=utf-8
84
+ Date:
85
+ - Sat, 19 Oct 2013 09:13:46 GMT
86
+ Etag:
87
+ - ! '"7c2fa1741ca4c87a5bc1846fada825af"'
88
+ Server:
89
+ - nginx/1.5.2
90
+ Status:
91
+ - 200 OK
92
+ Strict-Transport-Security:
93
+ - max-age=31536000
94
+ Vary:
95
+ - Accept,Authorization,Accept-Encoding
96
+ X-Accepted-Oauth-Scopes:
97
+ - private
98
+ X-Endpoint:
99
+ - Travis::Pro::Api::Endpoint::Repos
100
+ X-Oauth-Scopes:
101
+ - public,private
102
+ X-Pattern:
103
+ - /:repository_id/branches/:branch
104
+ Content-Length:
105
+ - '1666'
106
+ Connection:
107
+ - keep-alive
108
+ body:
109
+ encoding: US-ASCII
110
+ string: ! '{"branch":{"id":1443071,"repository_id":95390,"commit_id":1684724,"number":"641","state":"started","started_at":"2013-10-19T09:13:35Z","finished_at":null,"duration":null,"job_ids":[1974515],"pull_request":false},"commit":{"id":1684724,"sha":"9ba68cf72ce47ee377abfe8de9a2df58c183e284","branch":"events-framework","message":"[#59112124]
111
+ publish monitoring event when finish test","committed_at":"2013-10-18T14:42:04Z","author_name":"paladiy","author_email":"olexanderpaladiy@gmail.com","committer_name":"paladiy","committer_email":"olexanderpaladiy@gmail.com","compare_url":"https://github.com/rails/rails-private/compare/e022614de429...9ba68cf72ce4"}}'
112
+ http_version:
113
+ recorded_at: Sat, 19 Oct 2013 09:13:51 GMT
114
+ recorded_with: VCR 2.6.0
@@ -0,0 +1,115 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.travis-ci.com/repos/rails/rails-private
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; version=2
12
+ Authorization:
13
+ - token WD4poUv9RKSpqRGwDrkzbQ
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Access-Control-Allow-Credentials:
20
+ - 'true'
21
+ Access-Control-Allow-Origin:
22
+ - ! '*'
23
+ Access-Control-Expose-Headers:
24
+ - Content-Type, Cache-Control, Expires, Etag, Last-Modified
25
+ Cache-Control:
26
+ - no-cache
27
+ Content-Type:
28
+ - application/json;charset=utf-8
29
+ Date:
30
+ - Sat, 19 Oct 2013 09:13:44 GMT
31
+ Etag:
32
+ - ! '"7c2fa1741ca4c87a5bc1846fada825af"'
33
+ Server:
34
+ - nginx/1.5.2
35
+ Status:
36
+ - 200 OK
37
+ Strict-Transport-Security:
38
+ - max-age=31536000
39
+ Vary:
40
+ - Accept,Authorization,Accept-Encoding
41
+ X-Accepted-Oauth-Scopes:
42
+ - private
43
+ X-Endpoint:
44
+ - Travis::Pro::Api::Endpoint::Repos
45
+ X-Oauth-Scopes:
46
+ - public,private
47
+ X-Pattern:
48
+ - /:owner_name/:name
49
+ Content-Length:
50
+ - '308'
51
+ Connection:
52
+ - keep-alive
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ! '{"repo":{"id":95390,"slug":"rails/rails-private","description":"","last_build_id":1443071,"last_build_number":"641","last_build_state":"started","last_build_duration":null,"last_build_language":null,"last_build_started_at":"2013-10-19T09:13:35Z","last_build_finished_at":null,"github_language":"Ruby"}}'
56
+ http_version:
57
+ recorded_at: Sat, 19 Oct 2013 09:13:48 GMT
58
+ - request:
59
+ method: get
60
+ uri: https://api.travis-ci.com/repos/95390/branches/master
61
+ body:
62
+ encoding: US-ASCII
63
+ string: ''
64
+ headers:
65
+ Accept:
66
+ - application/json; version=2
67
+ Authorization:
68
+ - token WD4poUv9RKSpqRGwDrkzbQ
69
+ response:
70
+ status:
71
+ code: 200
72
+ message: OK
73
+ headers:
74
+ Access-Control-Allow-Credentials:
75
+ - 'true'
76
+ Access-Control-Allow-Origin:
77
+ - ! '*'
78
+ Access-Control-Expose-Headers:
79
+ - Content-Type, Cache-Control, Expires, Etag, Last-Modified
80
+ Cache-Control:
81
+ - no-cache
82
+ Content-Type:
83
+ - application/json;charset=utf-8
84
+ Date:
85
+ - Sat, 19 Oct 2013 09:13:45 GMT
86
+ Etag:
87
+ - ! '"fa6a918db0fe1d44aaa51c19d01b0891"'
88
+ Server:
89
+ - nginx/1.5.2
90
+ Status:
91
+ - 200 OK
92
+ Strict-Transport-Security:
93
+ - max-age=31536000
94
+ Vary:
95
+ - Accept,Authorization,Accept-Encoding
96
+ X-Accepted-Oauth-Scopes:
97
+ - private
98
+ X-Endpoint:
99
+ - Travis::Pro::Api::Endpoint::Repos
100
+ X-Oauth-Scopes:
101
+ - public,private
102
+ X-Pattern:
103
+ - /:repository_id/branches/:branch
104
+ Content-Length:
105
+ - '1632'
106
+ Connection:
107
+ - keep-alive
108
+ body:
109
+ encoding: US-ASCII
110
+ string: ! '{"branch":{"id":1446122,"repository_id":95390,"commit_id":1688480,"number":"649","state":"passed","started_at":"2013-10-18T20:12:38Z","finished_at":"2013-10-18T20:23:26Z","duration":648,"job_ids":[1979212],"pull_request":false},"commit":{"id":1688480,"sha":"c00e43c06f1c84c6005ba26e5e5704dc4064da18","branch":"master","message":"css","committed_at":"2013-10-18T20:05:17Z","author_name":"Alexey
111
+ Vasiliev","author_email":"leopard.not.a@gmail.com","committer_name":"Alexey
112
+ Vasiliev","committer_email":"leopard.not.a@gmail.com","compare_url":"https://github.com/rails/rails-private/compare/cd8a61a091b8...c00e43c06f1c"}}'
113
+ http_version:
114
+ recorded_at: Sat, 19 Oct 2013 09:13:49 GMT
115
+ recorded_with: VCR 2.6.0