testbot 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +6 -0
- data/README.markdown +1 -1
- data/lib/runner.rb +3 -1
- data/lib/testbot.rb +1 -1
- metadata +4 -4
data/CHANGELOG
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
0.3.4
|
2
|
+
|
3
|
+
Bundler support. Testbot now runs "bundle" before "testbot:before_run" if you
|
4
|
+
have "bundle" in path and have a "Gemfile" in the project so that the
|
5
|
+
rails environment can load.
|
6
|
+
|
1
7
|
0.3.3
|
2
8
|
|
3
9
|
Fixed loading issue in rails 2, testbot depended on having rails installed as a gem.
|
data/README.markdown
CHANGED
@@ -68,7 +68,7 @@ Using testbot with Rails 3:
|
|
68
68
|
|
69
69
|
Using testbot with Rails 2:
|
70
70
|
|
71
|
-
ruby script/plugin install git://github.com/joakimk/testbot.git -r 'refs/tags/v0.3.
|
71
|
+
ruby script/plugin install git://github.com/joakimk/testbot.git -r 'refs/tags/v0.3.4'
|
72
72
|
|
73
73
|
The rails 2 config generator isn't done yet so you can look at the following examples instead:
|
74
74
|
[lib/tasks/testbot.rake](https://gist.github.com/715836) and
|
data/lib/runner.rb
CHANGED
@@ -165,7 +165,9 @@ class Runner
|
|
165
165
|
end
|
166
166
|
|
167
167
|
def before_run(job)
|
168
|
-
|
168
|
+
use_bundler = File.exists?("#{job.project}/Gemfile") && system("which bundle > /dev/null")
|
169
|
+
bundler_cmd = use_bundler ? "bundle; " : ""
|
170
|
+
system "export RAILS_ENV=test; export TEST_INSTANCES=#{@config.max_instances}; cd #{job.project}; #{bundler_cmd} rake testbot:before_run"
|
169
171
|
end
|
170
172
|
|
171
173
|
def first_job_from_requester?
|
data/lib/testbot.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 4
|
10
|
+
version: 0.3.4
|
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: 2010-11-
|
18
|
+
date: 2010-11-26 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|