hudson 0.2.4 → 0.2.5.pre2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,88 @@
1
+ <?xml version='1.0' encoding='UTF-8'?>
2
+ <matrix-project>
3
+ <actions/>
4
+ <description></description>
5
+ <keepDependencies>false</keepDependencies>
6
+ <properties/>
7
+ <scm class="hudson.plugins.git.GitSCM">
8
+ <configVersion>1</configVersion>
9
+ <remoteRepositories>
10
+ <org.spearce.jgit.transport.RemoteConfig>
11
+ <string>origin</string>
12
+ <int>5</int>
13
+ <string>fetch</string>
14
+ <string>+refs/heads/*:refs/remotes/origin/*</string>
15
+ <string>receivepack</string>
16
+ <string>git-upload-pack</string>
17
+ <string>uploadpack</string>
18
+ <string>git-upload-pack</string>
19
+ <string>url</string>
20
+ <string>git@codebasehq.com:mocra/dash/web-app.git</string>
21
+ <string>tagopt</string>
22
+ <string></string>
23
+ </org.spearce.jgit.transport.RemoteConfig>
24
+ </remoteRepositories>
25
+ <branches>
26
+ <hudson.plugins.git.BranchSpec>
27
+ <name>master</name>
28
+ </hudson.plugins.git.BranchSpec>
29
+ </branches>
30
+ <mergeOptions/>
31
+ <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
32
+ <clean>false</clean>
33
+ <choosingStrategy>Default</choosingStrategy>
34
+ <submoduleCfg class="list"/>
35
+ </scm>
36
+ <canRoam>true</canRoam>
37
+ <disabled>false</disabled>
38
+ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
39
+ <triggers class="vector">
40
+ <hudson.triggers.SCMTrigger>
41
+ <spec># every minute
42
+ * * * * *</spec>
43
+ </hudson.triggers.SCMTrigger>
44
+ </triggers>
45
+ <concurrentBuild>false</concurrentBuild>
46
+ <axes>
47
+ </axes>
48
+ <builders>
49
+ <hudson.tasks.Shell>
50
+ <command>echo &quot;Running steps...&quot;</command>
51
+ </hudson.tasks.Shell>
52
+ <hudson.plugins.ruby.Ruby>
53
+ <command>unless File.exist?(&quot;config/database.yml&quot;)
54
+ require &apos;fileutils&apos;
55
+ example = Dir[&quot;config/database*&quot;].first
56
+ puts &quot;Using #{example} for config/database.yml&quot;
57
+ FileUtils.cp example, &quot;config/database.yml&quot;
58
+ end</command>
59
+ </hudson.plugins.ruby.Ruby>
60
+ <hudson.plugins.rake.Rake>
61
+ <rakeInstallation>(Default)</rakeInstallation>
62
+ <rakeFile></rakeFile>
63
+ <rakeLibDir></rakeLibDir>
64
+ <rakeWorkingDir></rakeWorkingDir>
65
+ <tasks>db:schema:load</tasks>
66
+ <silent>false</silent>
67
+ </hudson.plugins.rake.Rake>
68
+ <hudson.plugins.rake.Rake>
69
+ <rakeInstallation>(Default)</rakeInstallation>
70
+ <rakeFile></rakeFile>
71
+ <rakeLibDir></rakeLibDir>
72
+ <rakeWorkingDir></rakeWorkingDir>
73
+ <tasks>features</tasks>
74
+ <silent>false</silent>
75
+ </hudson.plugins.rake.Rake>
76
+ <hudson.plugins.rake.Rake>
77
+ <rakeInstallation>(Default)</rakeInstallation>
78
+ <rakeFile></rakeFile>
79
+ <rakeLibDir></rakeLibDir>
80
+ <rakeWorkingDir></rakeWorkingDir>
81
+ <tasks>spec</tasks>
82
+ <silent>false</silent>
83
+ </hudson.plugins.rake.Rake>
84
+ </builders>
85
+ <publishers/>
86
+ <buildWrappers/>
87
+ <runSequentially>false</runSequentially>
88
+ </matrix-project>
@@ -0,0 +1,82 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project>
3
+ <actions/>
4
+ <description/>
5
+ <keepDependencies>false</keepDependencies>
6
+ <properties/>
7
+ <scm class="hudson.plugins.git.GitSCM">
8
+ <configVersion>1</configVersion>
9
+ <remoteRepositories>
10
+ <org.spearce.jgit.transport.RemoteConfig>
11
+ <string>origin</string>
12
+ <int>5</int>
13
+ <string>fetch</string>
14
+ <string>+refs/heads/*:refs/remotes/origin/*</string>
15
+ <string>receivepack</string>
16
+ <string>git-upload-pack</string>
17
+ <string>uploadpack</string>
18
+ <string>git-upload-pack</string>
19
+ <string>url</string>
20
+ <string>git@codebasehq.com:mocra/misc/mocra-web.git</string>
21
+ <string>tagopt</string>
22
+ <string/>
23
+ </org.spearce.jgit.transport.RemoteConfig>
24
+ </remoteRepositories>
25
+ <branches>
26
+ <hudson.plugins.git.BranchSpec>
27
+ <name>master</name>
28
+ </hudson.plugins.git.BranchSpec>
29
+ </branches>
30
+ <mergeOptions/>
31
+ <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
32
+ <clean>false</clean>
33
+ <choosingStrategy>Default</choosingStrategy>
34
+ <submoduleCfg class="list"/>
35
+ </scm>
36
+ <canRoam>true</canRoam>
37
+ <disabled>false</disabled>
38
+ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
39
+ <triggers class="vector">
40
+ <hudson.triggers.SCMTrigger>
41
+ <spec># every minute
42
+ * * * * *</spec>
43
+ </hudson.triggers.SCMTrigger>
44
+ </triggers>
45
+ <concurrentBuild>false</concurrentBuild>
46
+ <builders>
47
+ <hudson.plugins.ruby.Ruby>
48
+ <command>unless File.exist?(&quot;config/database.yml&quot;)
49
+ require &apos;fileutils&apos;
50
+ example = Dir[&quot;config/database*&quot;].first
51
+ puts &quot;Using #{example} for config/database.yml&quot;
52
+ FileUtils.cp example, &quot;config/database.yml&quot;
53
+ end</command>
54
+ </hudson.plugins.ruby.Ruby>
55
+ <hudson.plugins.rake.Rake>
56
+ <rakeInstallation>(Default)</rakeInstallation>
57
+ <rakeFile></rakeFile>
58
+ <rakeLibDir></rakeLibDir>
59
+ <rakeWorkingDir></rakeWorkingDir>
60
+ <tasks>db:schema:load</tasks>
61
+ <silent>false</silent>
62
+ </hudson.plugins.rake.Rake>
63
+ <hudson.plugins.rake.Rake>
64
+ <rakeInstallation>(Default)</rakeInstallation>
65
+ <rakeFile></rakeFile>
66
+ <rakeLibDir></rakeLibDir>
67
+ <rakeWorkingDir></rakeWorkingDir>
68
+ <tasks>features</tasks>
69
+ <silent>false</silent>
70
+ </hudson.plugins.rake.Rake>
71
+ <hudson.plugins.rake.Rake>
72
+ <rakeInstallation>(Default)</rakeInstallation>
73
+ <rakeFile></rakeFile>
74
+ <rakeLibDir></rakeLibDir>
75
+ <rakeWorkingDir></rakeWorkingDir>
76
+ <tasks>spec</tasks>
77
+ <silent>false</silent>
78
+ </hudson.plugins.rake.Rake>
79
+ </builders>
80
+ <publishers/>
81
+ <buildWrappers/>
82
+ </project>
@@ -0,0 +1,60 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <matrix-project>
3
+ <actions/>
4
+ <description/>
5
+ <keepDependencies>false</keepDependencies>
6
+ <properties/>
7
+ <scm class="hudson.plugins.git.GitSCM">
8
+ <configVersion>1</configVersion>
9
+ <remoteRepositories>
10
+ <org.spearce.jgit.transport.RemoteConfig>
11
+ <string>origin</string>
12
+ <int>5</int>
13
+ <string>fetch</string>
14
+ <string>+refs/heads/*:refs/remotes/origin/*</string>
15
+ <string>receivepack</string>
16
+ <string>git-upload-pack</string>
17
+ <string>uploadpack</string>
18
+ <string>git-upload-pack</string>
19
+ <string>url</string>
20
+ <string>http://github.com/drnic/picasa_plucker.git</string>
21
+ <string>tagopt</string>
22
+ <string/>
23
+ </org.spearce.jgit.transport.RemoteConfig>
24
+ </remoteRepositories>
25
+ <branches>
26
+ <hudson.plugins.git.BranchSpec>
27
+ <name>**</name>
28
+ </hudson.plugins.git.BranchSpec>
29
+ </branches>
30
+ <mergeOptions/>
31
+ <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
32
+ <clean>false</clean>
33
+ <choosingStrategy>Default</choosingStrategy>
34
+ <submoduleCfg class="list"/>
35
+ </scm>
36
+ <canRoam>true</canRoam>
37
+ <disabled>false</disabled>
38
+ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
39
+ <triggers class="vector">
40
+ <hudson.triggers.SCMTrigger>
41
+ <spec># every minute
42
+ * * * * *</spec>
43
+ </hudson.triggers.SCMTrigger>
44
+ </triggers>
45
+ <concurrentBuild>false</concurrentBuild>
46
+ <axes/>
47
+ <builders>
48
+ <hudson.plugins.rake.Rake>
49
+ <rakeInstallation>(Default)</rakeInstallation>
50
+ <rakeFile/>
51
+ <rakeLibDir/>
52
+ <rakeWorkingDir/>
53
+ <tasks>features</tasks>
54
+ <silent>false</silent>
55
+ </hudson.plugins.rake.Rake>
56
+ </builders>
57
+ <publishers/>
58
+ <buildWrappers/>
59
+ <runSequentially>false</runSequentially>
60
+ </matrix-project>
@@ -0,0 +1,77 @@
1
+ <?xml version='1.0' encoding='UTF-8'?>
2
+ <matrix-project>
3
+ <actions/>
4
+ <description></description>
5
+ <keepDependencies>false</keepDependencies>
6
+ <properties/>
7
+ <scm class="hudson.plugins.git.GitSCM">
8
+ <configVersion>1</configVersion>
9
+ <remoteRepositories>
10
+ <org.spearce.jgit.transport.RemoteConfig>
11
+ <string>origin</string>
12
+ <int>5</int>
13
+ <string>fetch</string>
14
+ <string>+refs/heads/*:refs/remotes/origin/*</string>
15
+ <string>receivepack</string>
16
+ <string>git-upload-pack</string>
17
+ <string>uploadpack</string>
18
+ <string>git-upload-pack</string>
19
+ <string>url</string>
20
+ <string>git://github.com/cowboyd/therubyracer.git</string>
21
+ <string>tagopt</string>
22
+ <string></string>
23
+ </org.spearce.jgit.transport.RemoteConfig>
24
+ </remoteRepositories>
25
+ <branches>
26
+ <hudson.plugins.git.BranchSpec>
27
+ <name>master</name>
28
+ </hudson.plugins.git.BranchSpec>
29
+ </branches>
30
+ <mergeOptions/>
31
+ <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
32
+ <clean>true</clean>
33
+ <choosingStrategy>Default</choosingStrategy>
34
+ <submoduleCfg class="list"/>
35
+ </scm>
36
+ <canRoam>true</canRoam>
37
+ <disabled>false</disabled>
38
+ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
39
+ <triggers class="vector"/>
40
+ <concurrentBuild>false</concurrentBuild>
41
+ <axes>
42
+ <axis>
43
+ <name>RUBY_VERSION</name>
44
+ <values>
45
+ <string>1.8.6</string>
46
+ <string>1.8.7</string>
47
+ <string>1.9.1</string>
48
+ </values>
49
+ </axis>
50
+ <axis>
51
+ <name>label</name>
52
+ <values>
53
+ <string>OSX-Leopard-10.5</string>
54
+ <string>Ubuntu-Lucid-10.04-server-amd64</string>
55
+ <string>Ubuntu-Karmic-9.10-server-amd64</string>
56
+ <string>OSX-Snow-Leopard-10.6.3</string>
57
+ </values>
58
+ </axis>
59
+ </axes>
60
+ <builders>
61
+ <hudson.tasks.Shell>
62
+ <command>#!/bin/bash -lxe
63
+ GEMSET=build-$BUILD_NUMBER-ruby-$RUBY_VERSION
64
+ rvm $RUBY_VERSION
65
+ rvm gemset create $GEMSET
66
+ rvm gemset use $GEMSET
67
+ gem install rake rake-compiler rspec
68
+ rake gem
69
+ gem install therubyracer-*.gem
70
+ v8 --selftest
71
+ </command>
72
+ </hudson.tasks.Shell>
73
+ </builders>
74
+ <publishers/>
75
+ <buildWrappers/>
76
+ <runSequentially>false</runSequentially>
77
+ </matrix-project>
@@ -0,0 +1,30 @@
1
+ require File.dirname(__FILE__) + "/spec_helper"
2
+
3
+ describe Hudson::JobConfigBuilder do
4
+ include ConfigFixtureLoaders
5
+
6
+ describe "rails job; single axis; block syntax" do
7
+ before do
8
+ @config = Hudson::JobConfigBuilder.new(:rails) do |c|
9
+ c.scm = "git@codebasehq.com:mocra/misc/mocra-web.git"
10
+ c.git_branches = %w[master]
11
+ end
12
+ end
13
+ it "builds config.xml" do
14
+ config_xml = config_xml("rails", "single")
15
+ config_xml.should == @config.to_xml
16
+ end
17
+ end
18
+
19
+ describe "rubygem job; single axis; block syntax" do
20
+ before do
21
+ @config = Hudson::JobConfigBuilder.new(:rubygem) do |c|
22
+ c.scm = "http://github.com/drnic/picasa_plucker.git"
23
+ end
24
+ end
25
+ it "builds config.xml" do
26
+ config_xml = config_xml("rubygem")
27
+ config_xml.should == @config.to_xml
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,19 @@
1
+ begin
2
+ require 'spec'
3
+ rescue LoadError
4
+ require 'rubygems' unless ENV['NO_RUBYGEMS']
5
+ gem 'rspec'
6
+ require 'spec'
7
+ end
8
+
9
+ $:.unshift(File.dirname(__FILE__) + '/../lib')
10
+ require 'hudson'
11
+
12
+ module ConfigFixtureLoaders
13
+ def config_xml(name, variation = nil)
14
+ name += ".#{variation}" if variation
15
+ @@config_fixture_loaders ||= {}
16
+ @@config_fixture_loaders[name] ||= File.read(File.dirname(__FILE__) + "/fixtures/#{name}.config.xml")
17
+ @@config_fixture_loaders[name]
18
+ end
19
+ end
metadata CHANGED
@@ -1,26 +1,171 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hudson
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease: false
4
+ hash: -1876988187
5
+ prerelease: true
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 5
10
+ - pre2
11
+ version: 0.2.5.pre2
11
12
  platform: ruby
12
13
  authors:
13
14
  - Charles Lowell
15
+ - Dr Nic Williams
14
16
  autorequire:
15
17
  bindir: bin
16
18
  cert_chain: []
17
19
 
18
- date: 2010-05-24 00:00:00 +03:00
20
+ date: 2010-06-22 00:00:00 +03:00
19
21
  default_executable:
20
- dependencies: []
21
-
22
- description:
23
- email: cowboyd@thefrontside.net
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
24
+ name: term-ansicolor
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ hash: 31
32
+ segments:
33
+ - 1
34
+ - 0
35
+ - 4
36
+ version: 1.0.4
37
+ type: :runtime
38
+ version_requirements: *id001
39
+ - !ruby/object:Gem::Dependency
40
+ name: yajl-ruby
41
+ prerelease: false
42
+ requirement: &id002 !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ hash: 15
48
+ segments:
49
+ - 0
50
+ - 7
51
+ - 6
52
+ version: 0.7.6
53
+ type: :runtime
54
+ version_requirements: *id002
55
+ - !ruby/object:Gem::Dependency
56
+ name: httparty
57
+ prerelease: false
58
+ requirement: &id003 !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ~>
62
+ - !ruby/object:Gem::Version
63
+ hash: 15
64
+ segments:
65
+ - 0
66
+ - 5
67
+ - 2
68
+ version: 0.5.2
69
+ type: :runtime
70
+ version_requirements: *id003
71
+ - !ruby/object:Gem::Dependency
72
+ name: builder
73
+ prerelease: false
74
+ requirement: &id004 !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ~>
78
+ - !ruby/object:Gem::Version
79
+ hash: 15
80
+ segments:
81
+ - 2
82
+ - 1
83
+ - 2
84
+ version: 2.1.2
85
+ type: :runtime
86
+ version_requirements: *id004
87
+ - !ruby/object:Gem::Dependency
88
+ name: thor
89
+ prerelease: false
90
+ requirement: &id005 !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ~>
94
+ - !ruby/object:Gem::Version
95
+ hash: 39
96
+ segments:
97
+ - 0
98
+ - 13
99
+ - 6
100
+ version: 0.13.6
101
+ type: :runtime
102
+ version_requirements: *id005
103
+ - !ruby/object:Gem::Dependency
104
+ name: hpricot
105
+ prerelease: false
106
+ requirement: &id006 !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ hash: 3
112
+ segments:
113
+ - 0
114
+ version: "0"
115
+ type: :runtime
116
+ version_requirements: *id006
117
+ - !ruby/object:Gem::Dependency
118
+ name: cucumber
119
+ prerelease: false
120
+ requirement: &id007 !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ hash: 5
126
+ segments:
127
+ - 0
128
+ - 7
129
+ - 3
130
+ version: 0.7.3
131
+ type: :development
132
+ version_requirements: *id007
133
+ - !ruby/object:Gem::Dependency
134
+ name: rspec
135
+ prerelease: false
136
+ requirement: &id008 !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ hash: 27
142
+ segments:
143
+ - 1
144
+ - 3
145
+ - 0
146
+ version: 1.3.0
147
+ type: :development
148
+ version_requirements: *id008
149
+ - !ruby/object:Gem::Dependency
150
+ name: json
151
+ prerelease: false
152
+ requirement: &id009 !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ hash: 7
158
+ segments:
159
+ - 1
160
+ - 4
161
+ - 0
162
+ version: 1.4.0
163
+ type: :development
164
+ version_requirements: *id009
165
+ description: A suite of utilities for bringing continous integration to your projects (not the other way around) with hudson CI
166
+ email:
167
+ - cowboyd@thefrontside.net
168
+ - drnicwilliams@gmail.com
24
169
  executables:
25
170
  - hudson
26
171
  extensions: []
@@ -29,13 +174,41 @@ extra_rdoc_files: []
29
174
 
30
175
  files:
31
176
  - bin/hudson
177
+ - features/create_jobs.feature
178
+ - features/development.feature
179
+ - features/fixtures/projects/ruby/Rakefile
180
+ - features/managing_remote_servers.feature
181
+ - features/server.feature
182
+ - features/step_definitions/common_steps.rb
183
+ - features/step_definitions/fixture_project_steps.rb
184
+ - features/step_definitions/hudson_steps.rb
185
+ - features/step_definitions/scm_steps.rb
186
+ - features/support/common.rb
187
+ - features/support/env.rb
188
+ - features/support/hooks.rb
189
+ - features/support/matchers.rb
190
+ - hudson.gemspec
191
+ - lib/hudson/api.rb
192
+ - lib/hudson/cli/formatting.rb
193
+ - lib/hudson/cli.rb
32
194
  - lib/hudson/hudson.war
195
+ - lib/hudson/job_config_builder.rb
33
196
  - lib/hudson/plugins/git.hpi
34
197
  - lib/hudson/plugins/github.hpi
35
198
  - lib/hudson/plugins/greenballs.hpi
36
199
  - lib/hudson/plugins/rake.hpi
37
200
  - lib/hudson/plugins/ruby.hpi
201
+ - lib/hudson/project_scm.rb
38
202
  - lib/hudson.rb
203
+ - Rakefile
204
+ - README.md
205
+ - spec/fixtures/ec2_global.config.xml
206
+ - spec/fixtures/rails.multi.config.xml
207
+ - spec/fixtures/rails.single.config.xml
208
+ - spec/fixtures/rubygem.config.xml
209
+ - spec/fixtures/therubyracer.config.xml
210
+ - spec/job_config_builder_spec.rb
211
+ - spec/spec_helper.rb
39
212
  has_rdoc: true
40
213
  homepage: http://github.com/cowboyd/hudson.rb
41
214
  licenses: []
@@ -57,18 +230,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
57
230
  required_rubygems_version: !ruby/object:Gem::Requirement
58
231
  none: false
59
232
  requirements:
60
- - - ">="
233
+ - - ">"
61
234
  - !ruby/object:Gem::Version
62
- hash: 3
235
+ hash: 25
63
236
  segments:
64
- - 0
65
- version: "0"
237
+ - 1
238
+ - 3
239
+ - 1
240
+ version: 1.3.1
66
241
  requirements: []
67
242
 
68
- rubyforge_project:
243
+ rubyforge_project: hudson
69
244
  rubygems_version: 1.3.7
70
245
  signing_key:
71
246
  specification_version: 3
72
- summary: Run a Hudson continuous integration server
247
+ summary: Painless Continuous Integration with Hudson Server
73
248
  test_files: []
74
249