cerberus 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +6 -0
- data/Rakefile +10 -8
- data/lib/cerberus/builder/ruby_base.rb +13 -3
- data/lib/cerberus/constants.rb +1 -1
- data/lib/cerberus/scm/git.rb +1 -1
- data/test/bjam_builder_test.rb +0 -0
- data/test/config_test.rb +0 -0
- data/test/functional_test.rb +0 -0
- data/test/integration_test.rb +0 -0
- data/test/irc_publisher_test.rb +0 -0
- data/test/jabber_publisher_test.rb +0 -0
- data/test/mail_publisher_test.rb +0 -0
- data/test/maven2_builer_test.rb +0 -0
- data/test/perforce_scm_test.rb +0 -0
- data/test/rss_publisher_test.rb +0 -0
- data/test/test_helper.rb +0 -0
- data/test/twitter_publisher_test.rb +0 -0
- metadata +49 -49
data/CHANGES
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
= Cerberus Changelog
|
2
2
|
|
3
|
+
== Version 0.4.1
|
4
|
+
Minor bugfixes
|
5
|
+
|
6
|
+
* Fixed potential Git version issue when updating repository
|
7
|
+
* Fixed problem with rspec builder always returning false even when build was successful
|
8
|
+
|
3
9
|
== Version 0.4.0
|
4
10
|
Git, Twitter support
|
5
11
|
|
data/Rakefile
CHANGED
@@ -146,14 +146,16 @@ task :publish_news do
|
|
146
146
|
end
|
147
147
|
end
|
148
148
|
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
149
|
+
|
150
|
+
|
151
|
+
require 'webgen/webgentask'
|
152
|
+
|
153
|
+
task :www => :webgen
|
154
|
+
|
155
|
+
Webgen::WebgenTask.new do |t|
|
156
|
+
t.directory = File.join( File.dirname( __FILE__ ), 'doc/site')
|
157
|
+
t.clobber_outdir = true
|
158
|
+
end
|
157
159
|
|
158
160
|
task :publish_site => :webgen do
|
159
161
|
sh %{scp -r -q doc/site/output/* #{RUBYFORGE_USER}@rubyforge.org:/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/}
|
@@ -16,12 +16,22 @@ class Cerberus::Builder::RubyBase
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def successful?
|
19
|
-
|
19
|
+
if @output.include?("errors")
|
20
|
+
$?.exitstatus == 0 and not @output.include?("#{@cmd} aborted!") and @output.include?("0 failures, 0 errors")
|
21
|
+
else
|
22
|
+
$?.exitstatus == 0 and not @output.include?("#{@cmd} aborted!") and @output.include?("0 failures")
|
23
|
+
end
|
20
24
|
end
|
21
25
|
|
22
26
|
def brokeness
|
23
|
-
if @output
|
24
|
-
|
27
|
+
if @output.include?("errors")
|
28
|
+
if @output =~ /\d+ tests, \d+ assertions, (\d+) failures, (\d+) errors/
|
29
|
+
return $1.to_i + $2.to_i
|
30
|
+
end
|
31
|
+
else
|
32
|
+
if @output =~ /\d+ examples, (\d+) failures, 1 pending/
|
33
|
+
return $1.to_i
|
34
|
+
end
|
25
35
|
end
|
26
36
|
end
|
27
37
|
|
data/lib/cerberus/constants.rb
CHANGED
data/lib/cerberus/scm/git.rb
CHANGED
@@ -16,7 +16,7 @@ class Cerberus::SCM::Git
|
|
16
16
|
if test(?d, @path + '/.git')
|
17
17
|
extract_last_commit_info
|
18
18
|
#@status = execute('pull', '')
|
19
|
-
@status = execute(
|
19
|
+
@status = execute("reset", "--hard #{@revision}") + execute('pull')
|
20
20
|
else
|
21
21
|
FileUtils.rm_rf(@path) if test(?d, @path)
|
22
22
|
encoded_url = (@config[:scm, :url].include?(' ') ? "\"#{@config[:scm, :url]}\"" : @config[:scm, :url])
|
data/test/bjam_builder_test.rb
CHANGED
File without changes
|
data/test/config_test.rb
CHANGED
File without changes
|
data/test/functional_test.rb
CHANGED
File without changes
|
data/test/integration_test.rb
CHANGED
File without changes
|
data/test/irc_publisher_test.rb
CHANGED
File without changes
|
File without changes
|
data/test/mail_publisher_test.rb
CHANGED
File without changes
|
data/test/maven2_builer_test.rb
CHANGED
File without changes
|
data/test/perforce_scm_test.rb
CHANGED
File without changes
|
data/test/rss_publisher_test.rb
CHANGED
File without changes
|
data/test/test_helper.rb
CHANGED
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cerberus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anatol Pomozov
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-01-06 00:00:00 -08:00
|
13
13
|
default_executable: cerberus
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -93,61 +93,61 @@ extra_rdoc_files: []
|
|
93
93
|
files:
|
94
94
|
- bin/cerberus
|
95
95
|
- lib/cerberus
|
96
|
-
- lib/cerberus/builder
|
97
|
-
- lib/cerberus/builder/base.rb
|
98
|
-
- lib/cerberus/builder/bjam.rb
|
99
|
-
- lib/cerberus/builder/maven2.rb
|
100
|
-
- lib/cerberus/builder/rake.rb
|
101
|
-
- lib/cerberus/builder/rant.rb
|
102
|
-
- lib/cerberus/builder/rspec.rb
|
103
|
-
- lib/cerberus/builder/ruby_base.rb
|
104
|
-
- lib/cerberus/cli.rb
|
105
|
-
- lib/cerberus/component_lazy_loader.rb
|
106
96
|
- lib/cerberus/config.example.yml
|
107
|
-
- lib/cerberus/
|
97
|
+
- lib/cerberus/component_lazy_loader.rb
|
108
98
|
- lib/cerberus/config_migration.rb
|
109
|
-
- lib/cerberus/constants.rb
|
110
|
-
- lib/cerberus/latch.rb
|
111
|
-
- lib/cerberus/manager.rb
|
112
99
|
- lib/cerberus/publisher
|
113
|
-
- lib/cerberus/publisher/base.rb
|
114
|
-
- lib/cerberus/publisher/campfire.rb
|
115
|
-
- lib/cerberus/publisher/gmailer.rb
|
116
|
-
- lib/cerberus/publisher/irc.rb
|
117
|
-
- lib/cerberus/publisher/jabber.rb
|
118
100
|
- lib/cerberus/publisher/mail.rb
|
101
|
+
- lib/cerberus/publisher/gmailer.rb
|
119
102
|
- lib/cerberus/publisher/netsmtp_tls_fix.rb
|
103
|
+
- lib/cerberus/publisher/campfire.rb
|
120
104
|
- lib/cerberus/publisher/rss.rb
|
105
|
+
- lib/cerberus/publisher/base.rb
|
121
106
|
- lib/cerberus/publisher/twitter.rb
|
107
|
+
- lib/cerberus/publisher/irc.rb
|
108
|
+
- lib/cerberus/publisher/jabber.rb
|
109
|
+
- lib/cerberus/builder
|
110
|
+
- lib/cerberus/builder/ruby_base.rb
|
111
|
+
- lib/cerberus/builder/rspec.rb
|
112
|
+
- lib/cerberus/builder/bjam.rb
|
113
|
+
- lib/cerberus/builder/rant.rb
|
114
|
+
- lib/cerberus/builder/base.rb
|
115
|
+
- lib/cerberus/builder/maven2.rb
|
116
|
+
- lib/cerberus/builder/rake.rb
|
117
|
+
- lib/cerberus/config.rb
|
122
118
|
- lib/cerberus/scm
|
123
|
-
- lib/cerberus/scm/cvs.rb
|
124
|
-
- lib/cerberus/scm/darcs.rb
|
125
119
|
- lib/cerberus/scm/git.rb
|
126
|
-
- lib/cerberus/scm/perforce.rb
|
127
120
|
- lib/cerberus/scm/svn.rb
|
121
|
+
- lib/cerberus/scm/perforce.rb
|
122
|
+
- lib/cerberus/scm/darcs.rb
|
123
|
+
- lib/cerberus/scm/cvs.rb
|
124
|
+
- lib/cerberus/latch.rb
|
128
125
|
- lib/cerberus/utils.rb
|
129
|
-
-
|
130
|
-
-
|
131
|
-
-
|
132
|
-
- test/data/darcs.zip
|
133
|
-
- test/data/git.zip
|
134
|
-
- test/data/subversion.dump
|
135
|
-
- test/functional_test.rb
|
126
|
+
- lib/cerberus/constants.rb
|
127
|
+
- lib/cerberus/manager.rb
|
128
|
+
- lib/cerberus/cli.rb
|
136
129
|
- test/integration_test.rb
|
137
|
-
- test/
|
130
|
+
- test/config_test.rb
|
131
|
+
- test/rss_publisher_test.rb
|
132
|
+
- test/perforce_scm_test.rb
|
138
133
|
- test/jabber_publisher_test.rb
|
139
|
-
- test/
|
140
|
-
- test/
|
134
|
+
- test/test_helper.rb
|
135
|
+
- test/twitter_publisher_test.rb
|
136
|
+
- test/bjam_builder_test.rb
|
141
137
|
- test/mock
|
142
|
-
- test/mock/irc.rb
|
143
|
-
- test/mock/manager.rb
|
144
138
|
- test/mock/marshmallow.rb
|
145
139
|
- test/mock/twitter.rb
|
140
|
+
- test/mock/manager.rb
|
146
141
|
- test/mock/xmpp4r.rb
|
147
|
-
- test/
|
148
|
-
- test/
|
149
|
-
- test/
|
150
|
-
- test/
|
142
|
+
- test/mock/irc.rb
|
143
|
+
- test/data
|
144
|
+
- test/data/subversion.dump
|
145
|
+
- test/data/darcs.zip
|
146
|
+
- test/data/git.zip
|
147
|
+
- test/functional_test.rb
|
148
|
+
- test/maven2_builer_test.rb
|
149
|
+
- test/mail_publisher_test.rb
|
150
|
+
- test/irc_publisher_test.rb
|
151
151
|
- LICENSE
|
152
152
|
- README
|
153
153
|
- CHANGES
|
@@ -175,19 +175,19 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
175
|
requirements: []
|
176
176
|
|
177
177
|
rubyforge_project: cerberus
|
178
|
-
rubygems_version: 1.
|
178
|
+
rubygems_version: 1.3.1
|
179
179
|
signing_key:
|
180
180
|
specification_version: 2
|
181
181
|
summary: Cerberus is a Continuous Integration tool that could be easily run from Cron.
|
182
182
|
test_files:
|
183
|
-
- test/bjam_builder_test.rb
|
184
|
-
- test/config_test.rb
|
185
|
-
- test/functional_test.rb
|
186
183
|
- test/integration_test.rb
|
187
|
-
- test/
|
188
|
-
- test/jabber_publisher_test.rb
|
189
|
-
- test/mail_publisher_test.rb
|
190
|
-
- test/maven2_builer_test.rb
|
191
|
-
- test/perforce_scm_test.rb
|
184
|
+
- test/config_test.rb
|
192
185
|
- test/rss_publisher_test.rb
|
186
|
+
- test/perforce_scm_test.rb
|
187
|
+
- test/jabber_publisher_test.rb
|
193
188
|
- test/twitter_publisher_test.rb
|
189
|
+
- test/bjam_builder_test.rb
|
190
|
+
- test/functional_test.rb
|
191
|
+
- test/maven2_builer_test.rb
|
192
|
+
- test/mail_publisher_test.rb
|
193
|
+
- test/irc_publisher_test.rb
|