testbot_cloud 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -2
- data/.travis.yml +6 -0
- data/CHANGELOG +5 -1
- data/LICENCE +19 -0
- data/README.markdown +5 -4
- data/features/cluster_management.feature +1 -1
- data/lib/server/factory.rb +11 -3
- data/lib/testbot_cloud/version.rb +1 -1
- data/spec/server/factory_spec.rb +1 -4
- data/testbot_cloud.gemspec +2 -1
- metadata +26 -10
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/CHANGELOG
CHANGED
data/LICENCE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2011 Joakim Kolsjö
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
data/README.markdown
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
![Build status](https://secure.travis-ci.org/joakimk/testbot_cloud.png)
|
2
|
+
|
1
3
|
A tool for creating and managing [testbot](https://github.com/joakimk/testbot) clusters in the cloud.
|
2
4
|
|
3
|
-
TestbotCloud is based around the idea that you have a project folder for each cluster (which you can store in
|
5
|
+
TestbotCloud is based around the idea that you have a project folder for each cluster (which you can store in version control). You then use the "testbot_cloud" command to start and stop the cluster.
|
4
6
|
|
5
7
|
The motivation behind this tool, besides making distributed testing simpler is to be able to run a cluster only when it's needed (by scheduling it with tools like cron).
|
6
8
|
|
@@ -65,7 +67,7 @@ Gotchas
|
|
65
67
|
Features
|
66
68
|
-----
|
67
69
|
|
68
|
-
* TestbotCloud is continuously tested for
|
70
|
+
* TestbotCloud is continuously tested for compatibility with Ruby 1.8.7, 1.9.2, 1.9.3, JRuby 1.6.2 and Rubinius 1.2.3. I'm also trying out travis-ci at http://travis-ci.org/#!/joakimk/testbot_cloud.
|
69
71
|
* TestbotCloud is designed to be as reliable as possible when starting and stopping so that you can schedule it with tools like cron and save money.
|
70
72
|
|
71
73
|
How to add support for additional cloud computing providers
|
@@ -74,7 +76,7 @@ How to add support for additional cloud computing providers
|
|
74
76
|
Basics:
|
75
77
|
|
76
78
|
* Look at lib/server/aws.rb and lib/server/brightbox.rb.
|
77
|
-
* Write
|
79
|
+
* Write your own and add it to lib/server/factory.rb.
|
78
80
|
* Add fog config suitable for the provider to your config.yml.
|
79
81
|
|
80
82
|
When contributing:
|
@@ -83,4 +85,3 @@ When contributing:
|
|
83
85
|
* Write tests.
|
84
86
|
* Add a config example to the template at lib/templates/config.yml.
|
85
87
|
* Update this readme.
|
86
|
-
|
@@ -3,7 +3,7 @@ Feature: Cluster management
|
|
3
3
|
As a build monkey
|
4
4
|
I want to be able to start, stop and check status on the cloud instances
|
5
5
|
|
6
|
-
Scenario:
|
6
|
+
Scenario: Starting with 2 instances
|
7
7
|
Given I generate a project
|
8
8
|
And I start the testbot cluster
|
9
9
|
Then I should see "Starting 2 runners..."
|
data/lib/server/factory.rb
CHANGED
@@ -1,6 +1,14 @@
|
|
1
|
-
|
2
|
-
require 'fog/compute/models/brightbox/server'
|
3
|
-
require 'fog/compute/models/aws/server'
|
1
|
+
begin
|
2
|
+
require 'fog/compute/models/brightbox/server'
|
3
|
+
require 'fog/compute/models/aws/server'
|
4
|
+
require 'fog/compute/models/bluebox/server'
|
5
|
+
rescue LoadError
|
6
|
+
# New style paths in fog master
|
7
|
+
require 'fog/brightbox/models/compute/server'
|
8
|
+
require 'fog/aws/models/compute/server'
|
9
|
+
require 'fog/bluebox/models/compute/server'
|
10
|
+
end
|
11
|
+
|
4
12
|
require File.expand_path(File.join(File.dirname(__FILE__), 'brightbox.rb'))
|
5
13
|
require File.expand_path(File.join(File.dirname(__FILE__), 'aws.rb'))
|
6
14
|
|
data/spec/server/factory_spec.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require File.expand_path(File.join(File.dirname(__FILE__), '../spec_helper.rb'))
|
2
2
|
|
3
3
|
describe TestbotCloud::Server::Factory do
|
4
|
-
|
5
4
|
it "should create a server wrapper for Brightbox" do
|
6
5
|
server = TestbotCloud::Server::Factory.create(nil, nil, Fog::Brightbox::Compute::Server.new)
|
7
6
|
server.should be_instance_of(TestbotCloud::Server::Brightbox)
|
@@ -14,9 +13,7 @@ describe TestbotCloud::Server::Factory do
|
|
14
13
|
|
15
14
|
it "should raise an error when there is no server wrapper" do
|
16
15
|
expect {
|
17
|
-
TestbotCloud::Server::Factory.create(nil, nil, Fog::
|
16
|
+
TestbotCloud::Server::Factory.create(nil, nil, Fog::Bluebox::Compute::Server.new)
|
18
17
|
}.to raise_error(/Unsupported server type: /)
|
19
18
|
end
|
20
|
-
|
21
|
-
|
22
19
|
end
|
data/testbot_cloud.gemspec
CHANGED
@@ -18,8 +18,9 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
|
20
20
|
s.add_dependency "thor", ">0.14.5"
|
21
|
-
s.add_dependency "fog", "
|
21
|
+
s.add_dependency "fog", ">0.7.2"
|
22
22
|
s.add_dependency "activesupport", ">3.0.0"
|
23
|
+
s.add_dependency "rake"
|
23
24
|
s.add_development_dependency "bundler"
|
24
25
|
s.add_development_dependency "rspec"
|
25
26
|
s.add_development_dependency "cucumber"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testbot_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Joakim Kolsj\xC3\xB6"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2013-03-07 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- - "
|
43
|
+
- - ">"
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
hash: 7
|
46
46
|
segments:
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
type: :runtime
|
68
68
|
version_requirements: *id003
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rake
|
71
71
|
prerelease: false
|
72
72
|
requirement: &id004 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
@@ -78,10 +78,10 @@ dependencies:
|
|
78
78
|
segments:
|
79
79
|
- 0
|
80
80
|
version: "0"
|
81
|
-
type: :
|
81
|
+
type: :runtime
|
82
82
|
version_requirements: *id004
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: bundler
|
85
85
|
prerelease: false
|
86
86
|
requirement: &id005 !ruby/object:Gem::Requirement
|
87
87
|
none: false
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
type: :development
|
96
96
|
version_requirements: *id005
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: rspec
|
99
99
|
prerelease: false
|
100
100
|
requirement: &id006 !ruby/object:Gem::Requirement
|
101
101
|
none: false
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
version: "0"
|
109
109
|
type: :development
|
110
110
|
version_requirements: *id006
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: cucumber
|
113
|
+
prerelease: false
|
114
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
hash: 3
|
120
|
+
segments:
|
121
|
+
- 0
|
122
|
+
version: "0"
|
123
|
+
type: :development
|
124
|
+
version_requirements: *id007
|
111
125
|
description: A tool for creating and managing testbot clusters in the cloud
|
112
126
|
email:
|
113
127
|
- joakim.kolsjo@gmail.com
|
@@ -122,8 +136,10 @@ files:
|
|
122
136
|
- .gemtest
|
123
137
|
- .gitignore
|
124
138
|
- .rvmrc
|
139
|
+
- .travis.yml
|
125
140
|
- CHANGELOG
|
126
141
|
- Gemfile
|
142
|
+
- LICENCE
|
127
143
|
- README.markdown
|
128
144
|
- Rakefile
|
129
145
|
- autotest/discover.rb
|
@@ -181,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
197
|
requirements: []
|
182
198
|
|
183
199
|
rubyforge_project:
|
184
|
-
rubygems_version: 1.
|
200
|
+
rubygems_version: 1.5.3
|
185
201
|
signing_key:
|
186
202
|
specification_version: 3
|
187
203
|
summary: Run your tests in the cloud
|