rubaidh-bamboo_rails 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +37 -0
- data/Rakefile +21 -0
- data/bamboo_rails.gemspec +33 -0
- data/lib/bamboo_rails.rb +2 -0
- data/tasks/bamboo_rails_tasks.rake +15 -0
- metadata +73 -0
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Rubaidh Ltd.
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
= Bamboo Rails
|
2
|
+
|
3
|
+
This Rails gem/plugin just contains a couple of tasks that make life easier when dealing with the Atlassian Bamboo Continuous Integration Server. All it does is to create a rake task, +bamboo+, which will run your full test suite (be it Cucumber, RSpec or Test::Unit) and use the +ci_reporter+ gem to format the results in a manner that Bamboo will happily consume.
|
4
|
+
|
5
|
+
== Installation
|
6
|
+
|
7
|
+
If you're installing as a plugin with a recent version of Rails, it's totally straightforward:
|
8
|
+
|
9
|
+
script/plugin install git://github.com/rubaidh/bamboo_rails.git
|
10
|
+
|
11
|
+
If you want to install it as a gem, that should be straightforward, too, but currently (as of Rails 2.3.2), it's not quite so straightforward. First of all, install the gem on your development machine:
|
12
|
+
|
13
|
+
sudo gem install bamboo_rails
|
14
|
+
|
15
|
+
Then configure Rails to load it in +config/environment.rb+:
|
16
|
+
|
17
|
+
config.gem "bamboo_rails"
|
18
|
+
|
19
|
+
Now unpack the dependencies into your source tree (because you vendor everything, right?):
|
20
|
+
|
21
|
+
rake gems:unpack:dependencies
|
22
|
+
|
23
|
+
and add them to your source control system.
|
24
|
+
|
25
|
+
Here's the wrinkle. Rake tasks are not currently loaded from vendored gems. You'll need to add the following to your top-level Rakefile:
|
26
|
+
|
27
|
+
Dir["#{RAILS_ROOT}/vendor/gems/*/**/tasks/**/*.rake"].sort.each { |ext| load ext }
|
28
|
+
|
29
|
+
This will autoload you all of the tasks from your vendor gems, including the Bamboo one.
|
30
|
+
|
31
|
+
== Example
|
32
|
+
|
33
|
+
It's not rocket science: :-)
|
34
|
+
|
35
|
+
rake bamboo
|
36
|
+
|
37
|
+
Copyright (c) 2009 Rubaidh Ltd, released under the MIT license
|
data/Rakefile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/gempackagetask'
|
3
|
+
require 'rake/rdoctask'
|
4
|
+
require 'rake/clean'
|
5
|
+
require 'rubyforge'
|
6
|
+
|
7
|
+
spec = eval(File.read('bamboo_rails.gemspec'))
|
8
|
+
Rake::GemPackageTask.new(spec) do |t|
|
9
|
+
t.need_tar = false
|
10
|
+
end
|
11
|
+
|
12
|
+
Rake::RDocTask.new do |rdoc|
|
13
|
+
rdoc.rdoc_files += ['README.rdoc', 'MIT-LICENSE', 'lib/bamboo_rails.rb']
|
14
|
+
end
|
15
|
+
|
16
|
+
desc "Package and upload the release to RubyForge"
|
17
|
+
task :release => [:clobber, :package] do
|
18
|
+
rubyforge = RubyForge.new.configure
|
19
|
+
rubyforge.login
|
20
|
+
rubyforge.add_release spec.rubyforge_project, spec.name, spec.version.to_s, "pkg/#{spec.name}-#{spec.version}.gem"
|
21
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
spec = Gem::Specification.new do |s|
|
2
|
+
|
3
|
+
s.name = 'bamboo_rails'
|
4
|
+
s.version = '1.0.0'
|
5
|
+
s.date = '2009-05-06'
|
6
|
+
s.authors = ['Graeme Mathieson', 'Rubaidh Ltd']
|
7
|
+
s.email = 'support@rubaidh.com'
|
8
|
+
s.homepage = 'http://github.com/rubaidh/bamboo_rails'
|
9
|
+
s.summary = '[Rails] A bit of assistance for using Bamboo in your Rails applications'
|
10
|
+
s.rubyforge_project = 'rubaidh'
|
11
|
+
|
12
|
+
s.description = "This Rails gem/plugin just contains a couple of tasks " +
|
13
|
+
"that make life easier when dealing with the Atlassian Bamboo " +
|
14
|
+
"Continuous Integration Server. All it does is to create a rake task, " +
|
15
|
+
"+bamboo+, which will run your full test suite (be it Cucumber, RSpec " +
|
16
|
+
"or Test::Unit) and use the +ci_reporter+ gem to format the results " +
|
17
|
+
"in a manner that Bamboo will happily consume."
|
18
|
+
|
19
|
+
s.files = %w(
|
20
|
+
bamboo_rails.gemspec MIT-LICENSE Rakefile README.rdoc
|
21
|
+
tasks/bamboo_rails_tasks.rake
|
22
|
+
lib/bamboo_rails.rb
|
23
|
+
)
|
24
|
+
|
25
|
+
s.has_rdoc = true
|
26
|
+
s.extra_rdoc_files += ['README.rdoc', 'MIT-LICENSE']
|
27
|
+
s.rdoc_options += [
|
28
|
+
'--title', 'Bamboo Rails', '--main', 'README.rdoc', '--line-numbers'
|
29
|
+
]
|
30
|
+
|
31
|
+
# 1.6.0 is the first version that has cucumber support.
|
32
|
+
s.add_dependency 'ci_reporter', '>=1.6.0'
|
33
|
+
end
|
data/lib/bamboo_rails.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
desc "Reset the test database and run the entire test suite, formatting results for the Bamboo CI Server."
|
2
|
+
task :bamboo do
|
3
|
+
# Force us to be using the test environment so that we can use regular rake
|
4
|
+
# tasks to manipulate the database.
|
5
|
+
RAILS_ENV = ENV['RAILS_ENV'] = "test"
|
6
|
+
Rake::Task["bamboo:all"].invoke
|
7
|
+
end
|
8
|
+
|
9
|
+
namespace :bamboo do
|
10
|
+
task :all => [ :environment, "db:migrate:reset", :test, :spec, :features ]
|
11
|
+
|
12
|
+
task :test => [ "ci:setup:testunit", "rake:test" ]
|
13
|
+
task :spec => [ "ci:setup:rspec", "spec:rcov" ]
|
14
|
+
task :features => [ "ci:setup:cucumber", "rake:features" ]
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubaidh-bamboo_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Graeme Mathieson
|
8
|
+
- Rubaidh Ltd
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2009-05-06 00:00:00 -07:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: ci_reporter
|
18
|
+
type: :runtime
|
19
|
+
version_requirement:
|
20
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 1.6.0
|
25
|
+
version:
|
26
|
+
description: This Rails gem/plugin just contains a couple of tasks that make life easier when dealing with the Atlassian Bamboo Continuous Integration Server. All it does is to create a rake task, +bamboo+, which will run your full test suite (be it Cucumber, RSpec or Test::Unit) and use the +ci_reporter+ gem to format the results in a manner that Bamboo will happily consume.
|
27
|
+
email: support@rubaidh.com
|
28
|
+
executables: []
|
29
|
+
|
30
|
+
extensions: []
|
31
|
+
|
32
|
+
extra_rdoc_files:
|
33
|
+
- README.rdoc
|
34
|
+
- MIT-LICENSE
|
35
|
+
files:
|
36
|
+
- bamboo_rails.gemspec
|
37
|
+
- MIT-LICENSE
|
38
|
+
- Rakefile
|
39
|
+
- README.rdoc
|
40
|
+
- tasks/bamboo_rails_tasks.rake
|
41
|
+
- lib/bamboo_rails.rb
|
42
|
+
has_rdoc: true
|
43
|
+
homepage: http://github.com/rubaidh/bamboo_rails
|
44
|
+
post_install_message:
|
45
|
+
rdoc_options:
|
46
|
+
- --title
|
47
|
+
- Bamboo Rails
|
48
|
+
- --main
|
49
|
+
- README.rdoc
|
50
|
+
- --line-numbers
|
51
|
+
require_paths:
|
52
|
+
- lib
|
53
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: "0"
|
58
|
+
version:
|
59
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: "0"
|
64
|
+
version:
|
65
|
+
requirements: []
|
66
|
+
|
67
|
+
rubyforge_project: rubaidh
|
68
|
+
rubygems_version: 1.2.0
|
69
|
+
signing_key:
|
70
|
+
specification_version: 2
|
71
|
+
summary: "[Rails] A bit of assistance for using Bamboo in your Rails applications"
|
72
|
+
test_files: []
|
73
|
+
|