rhomobile-cijoe 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/cijoe +9 -1
- data/lib/cijoe/server.rb +3 -2
- data/lib/cijoe/version.rb +1 -1
- data/lib/cijoe.rb +5 -3
- metadata +4 -4
data/bin/cijoe
CHANGED
@@ -26,6 +26,14 @@ Choice.options do
|
|
26
26
|
default d
|
27
27
|
end
|
28
28
|
|
29
|
+
option :runner do
|
30
|
+
d = "Config.cijoe.runner.to_s"
|
31
|
+
short '-r'
|
32
|
+
long '--runner=RUNNER'
|
33
|
+
desc "The path to the git config option for testing the build (default #{d})"
|
34
|
+
default d
|
35
|
+
end
|
36
|
+
|
29
37
|
separator ''
|
30
38
|
separator 'Common options: '
|
31
39
|
|
@@ -46,4 +54,4 @@ Choice.options do
|
|
46
54
|
end
|
47
55
|
|
48
56
|
options = Choice.choices
|
49
|
-
CIJoe::Server.start(options[:host], options[:port], Choice.rest[0])
|
57
|
+
CIJoe::Server.start(options[:host], options[:port], options[:runner], Choice.rest[0])
|
data/lib/cijoe/server.rb
CHANGED
@@ -84,13 +84,14 @@ class CIJoe
|
|
84
84
|
def initialize(*args)
|
85
85
|
super
|
86
86
|
check_project
|
87
|
-
@joe = CIJoe.new(options.project_path)
|
87
|
+
@joe = CIJoe.new(options.project_path, options.runner)
|
88
88
|
|
89
89
|
CIJoe::Email.activate
|
90
90
|
end
|
91
91
|
|
92
|
-
def self.start(host, port, project_path)
|
92
|
+
def self.start(host, port, runner, project_path)
|
93
93
|
set :project_path, project_path
|
94
|
+
set :runner, runner
|
94
95
|
CIJoe::Server.run! :host => host, :port => port
|
95
96
|
end
|
96
97
|
|
data/lib/cijoe/version.rb
CHANGED
data/lib/cijoe.rb
CHANGED
@@ -27,9 +27,9 @@ require 'cijoe/email'
|
|
27
27
|
require 'cijoe/server'
|
28
28
|
|
29
29
|
class CIJoe
|
30
|
-
attr_reader :user, :project, :url, :current_build, :old_builds
|
30
|
+
attr_reader :user, :project, :url, :current_build, :old_builds, :runner
|
31
31
|
|
32
|
-
def initialize(project_path)
|
32
|
+
def initialize(project_path, runner)
|
33
33
|
project_path = File.expand_path(project_path)
|
34
34
|
Dir.chdir(project_path)
|
35
35
|
|
@@ -39,6 +39,8 @@ class CIJoe
|
|
39
39
|
@old_builds = []
|
40
40
|
@current_build = nil
|
41
41
|
|
42
|
+
@runner = runner
|
43
|
+
|
42
44
|
trap("INT") { stop }
|
43
45
|
end
|
44
46
|
|
@@ -151,7 +153,7 @@ class CIJoe
|
|
151
153
|
|
152
154
|
# shellin' out
|
153
155
|
def runner_command
|
154
|
-
runner =
|
156
|
+
runner = eval(@runner)
|
155
157
|
runner == '' ? "rake -s test:units" : runner
|
156
158
|
end
|
157
159
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rhomobile-cijoe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 12
|
10
|
+
version: 0.2.12
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Wanstrath
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-07-
|
20
|
+
date: 2010-07-27 00:00:00 -07:00
|
21
21
|
default_executable: cijoe
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|