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,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:48 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:53 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:49 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:54 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 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:47 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:51 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 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:48 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:52 GMT
115
+ recorded_with: VCR 2.6.0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.travis-ci.com/repos/rails/some_strange_repo
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: 403
17
+ message: Forbidden
18
+ headers:
19
+ Content-Type:
20
+ - text/html;charset=utf-8
21
+ Date:
22
+ - Sat, 19 Oct 2013 09:13:49 GMT
23
+ Server:
24
+ - nginx/1.5.2
25
+ Status:
26
+ - 403 Forbidden
27
+ Strict-Transport-Security:
28
+ - max-age=31536000
29
+ Vary:
30
+ - Accept-Encoding
31
+ X-Oauth-Scopes:
32
+ - ''
33
+ Content-Length:
34
+ - '13'
35
+ Connection:
36
+ - keep-alive
37
+ body:
38
+ encoding: US-ASCII
39
+ string: access denied
40
+ http_version:
41
+ recorded_at: Sat, 19 Oct 2013 09:13:54 GMT
42
+ recorded_with: VCR 2.6.0
metadata ADDED
@@ -0,0 +1,200 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-ci
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - paladiy
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-10-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 2.14.1
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 2.14.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: simplecov
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.7.1
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 0.7.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: vcr
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 2.6.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 2.6.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: webmock
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 1.14.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 1.14.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: capistrano
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: 2.5.5
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: 2.5.5
111
+ - !ruby/object:Gem::Dependency
112
+ name: httparty
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: Capistrano recipe for checking CI build status
126
+ email:
127
+ - olexanderpaladiy@gmail.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - .gitignore
133
+ - .travis.yml
134
+ - Gemfile
135
+ - LICENSE.txt
136
+ - README.md
137
+ - Rakefile
138
+ - capistrano-ci.gemspec
139
+ - lib/capistrano/ci.rb
140
+ - lib/capistrano/ci/client.rb
141
+ - lib/capistrano/ci/clients/base.rb
142
+ - lib/capistrano/ci/clients/travis.rb
143
+ - lib/capistrano/ci/clients/travis_pro.rb
144
+ - lib/capistrano/ci/recipes.rb
145
+ - lib/capistrano/ci/version.rb
146
+ - spec/capistrano/ci/client_spec.rb
147
+ - spec/capistrano/ci/clients/base_spec.rb
148
+ - spec/capistrano/ci/clients/travis_pro_spec.rb
149
+ - spec/capistrano/ci/clients/travis_spec.rb
150
+ - spec/spec_helper.rb
151
+ - spec/vcr/Capistrano_CI_Clients_Travis/_passed_/when_failed/.yml
152
+ - spec/vcr/Capistrano_CI_Clients_Travis/_passed_/when_passed/.yml
153
+ - spec/vcr/Capistrano_CI_Clients_Travis/_state/when_failed/.yml
154
+ - spec/vcr/Capistrano_CI_Clients_Travis/_state/when_passed/.yml
155
+ - spec/vcr/Capistrano_CI_Clients_Travis/_state/when_repository_was_not_found/.yml
156
+ - spec/vcr/Capistrano_CI_Clients_TravisPro/_passed_/when_not_passed/.yml
157
+ - spec/vcr/Capistrano_CI_Clients_TravisPro/_passed_/when_passed/.yml
158
+ - spec/vcr/Capistrano_CI_Clients_TravisPro/_state/when_not_passed/.yml
159
+ - spec/vcr/Capistrano_CI_Clients_TravisPro/_state/when_passed/.yml
160
+ - spec/vcr/Capistrano_CI_Clients_TravisPro/_state/when_repository_was_not_found/.yml
161
+ homepage: https://github.com/railsware/capistrano-ci
162
+ licenses:
163
+ - MIT
164
+ metadata: {}
165
+ post_install_message:
166
+ rdoc_options: []
167
+ require_paths:
168
+ - lib
169
+ required_ruby_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ required_rubygems_version: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - '>='
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ requirements: []
180
+ rubyforge_project:
181
+ rubygems_version: 2.0.4
182
+ signing_key:
183
+ specification_version: 4
184
+ summary: Capistrano recipe for checking CI build status of your repo
185
+ test_files:
186
+ - spec/capistrano/ci/client_spec.rb
187
+ - spec/capistrano/ci/clients/base_spec.rb
188
+ - spec/capistrano/ci/clients/travis_pro_spec.rb
189
+ - spec/capistrano/ci/clients/travis_spec.rb
190
+ - spec/spec_helper.rb
191
+ - spec/vcr/Capistrano_CI_Clients_Travis/_passed_/when_failed/.yml
192
+ - spec/vcr/Capistrano_CI_Clients_Travis/_passed_/when_passed/.yml
193
+ - spec/vcr/Capistrano_CI_Clients_Travis/_state/when_failed/.yml
194
+ - spec/vcr/Capistrano_CI_Clients_Travis/_state/when_passed/.yml
195
+ - spec/vcr/Capistrano_CI_Clients_Travis/_state/when_repository_was_not_found/.yml
196
+ - spec/vcr/Capistrano_CI_Clients_TravisPro/_passed_/when_not_passed/.yml
197
+ - spec/vcr/Capistrano_CI_Clients_TravisPro/_passed_/when_passed/.yml
198
+ - spec/vcr/Capistrano_CI_Clients_TravisPro/_state/when_not_passed/.yml
199
+ - spec/vcr/Capistrano_CI_Clients_TravisPro/_state/when_passed/.yml
200
+ - spec/vcr/Capistrano_CI_Clients_TravisPro/_state/when_repository_was_not_found/.yml