testbot 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.
@@ -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.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
@@ -165,7 +165,9 @@ class Runner
165
165
  end
166
166
 
167
167
  def before_run(job)
168
- system "export RAILS_ENV=test; export TEST_INSTANCES=#{@config.max_instances}; cd #{job.project}; rake testbot:before_run"
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?
@@ -6,7 +6,7 @@ module Testbot
6
6
  require 'railtie' if defined?(Rails)
7
7
 
8
8
  # Don't forget to update readme and changelog
9
- VERSION = "0.3.3"
9
+ VERSION = "0.3.4"
10
10
 
11
11
  SERVER_PID = "/tmp/testbot_server.pid"
12
12
  RUNNER_PID = "/tmp/testbot_runner.pid"
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: 21
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 3
10
- version: 0.3.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-25 00:00:00 +01:00
18
+ date: 2010-11-26 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency