ci_reporter 1.9.3 → 2.0.0.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +22 -0
- data/.travis.yml +2 -6
- data/Gemfile +0 -9
- data/History.txt +0 -4
- data/LICENSE.txt +23 -21
- data/README.md +90 -0
- data/Rakefile +5 -99
- data/ci_reporter.gemspec +23 -52
- data/gemfiles/.gitignore +1 -0
- data/lib/ci/reporter/core.rb +0 -4
- data/lib/ci/reporter/internal.rb +31 -0
- data/lib/ci/reporter/rake/utils.rb +0 -4
- data/lib/ci/reporter/report_manager.rb +7 -11
- data/lib/ci/reporter/test_suite.rb +1 -9
- data/lib/ci/reporter/version.rb +1 -7
- data/spec/ci/reporter/output_capture_spec.rb +3 -7
- data/spec/ci/reporter/report_manager_spec.rb +6 -10
- data/spec/ci/reporter/test_suite_spec.rb +0 -4
- data/spec/spec_helper.rb +0 -7
- metadata +29 -138
- data/.gemtest +0 -0
- data/.hoerc +0 -2
- data/.travis.before_install.sh +0 -13
- data/Manifest.txt +0 -50
- data/README.rdoc +0 -111
- data/acceptance/cucumber/cucumber_example.feature +0 -19
- data/acceptance/cucumber/step_definitions/development_steps.rb +0 -40
- data/acceptance/minitest_example_test.rb +0 -17
- data/acceptance/rspec_example_spec.rb +0 -24
- data/acceptance/spinach/features/spinach_example.feature +0 -24
- data/acceptance/spinach/features/steps/example_spinach_feature.rb +0 -34
- data/acceptance/test_unit_example_test.rb +0 -23
- data/acceptance/verification_spec.rb +0 -185
- data/lib/ci/reporter/cucumber.rb +0 -127
- data/lib/ci/reporter/minitest.rb +0 -226
- data/lib/ci/reporter/rake/cucumber.rb +0 -17
- data/lib/ci/reporter/rake/cucumber_loader.rb +0 -6
- data/lib/ci/reporter/rake/minitest.rb +0 -15
- data/lib/ci/reporter/rake/minitest_loader.rb +0 -9
- data/lib/ci/reporter/rake/rspec.rb +0 -31
- data/lib/ci/reporter/rake/rspec_loader.rb +0 -6
- data/lib/ci/reporter/rake/spinach.rb +0 -19
- data/lib/ci/reporter/rake/spinach_loader.rb +0 -5
- data/lib/ci/reporter/rake/test_unit.rb +0 -15
- data/lib/ci/reporter/rake/test_unit_loader.rb +0 -38
- data/lib/ci/reporter/rspec.rb +0 -220
- data/lib/ci/reporter/spinach.rb +0 -80
- data/lib/ci/reporter/test_unit.rb +0 -163
- data/spec/ci/reporter/cucumber_spec.rb +0 -230
- data/spec/ci/reporter/rake/rake_tasks_spec.rb +0 -110
- data/spec/ci/reporter/rspec_spec.rb +0 -156
- data/spec/ci/reporter/test_unit_spec.rb +0 -152
- data/stub.rake +0 -16
- data/tasks/ci_reporter.rake +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 818b7ca178f6055f90139af88c19856b921a2001
|
4
|
+
data.tar.gz: 785075435480302645e4cddddfb130aa9c5716f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7fa510d753444985ce7a6224e374cbec231238d77aa4699ccfc4ec721724cc21e8517af4f09553c0616c7ce2af738e7825f0a4a7b4d4fda5e21813935f96137
|
7
|
+
data.tar.gz: 3f817a975671ec431d99af56c292f5c2c821fc5aaa8be906f592069be63f52a23cd1fae81947e1f60c7624eb6e5d442b7b38d065de7da6eba6327cd6dd1815b4
|
data/.gitignore
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -1,12 +1,3 @@
|
|
1
|
-
#--
|
2
|
-
# Copyright (c) 2006-2014 Nick Sieger <nicksieger@gmail.com>
|
3
|
-
# See the file LICENSE.txt included with the distribution for
|
4
|
-
# software license details.
|
5
|
-
#++
|
6
|
-
|
7
1
|
source 'https://rubygems.org'
|
8
2
|
|
9
3
|
gemspec
|
10
|
-
group :development do
|
11
|
-
gem 'jruby-openssl', :platform => :jruby
|
12
|
-
end
|
data/History.txt
CHANGED
data/LICENSE.txt
CHANGED
@@ -1,21 +1,23 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
1
|
+
Copyright (c) 2006-2014 Nick Sieger <nicksieger@gmail.com>
|
2
|
+
Copyright (c) 2014 The CI Reporter authors
|
3
|
+
|
4
|
+
MIT License
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
7
|
+
a copy of this software and associated documentation files (the
|
8
|
+
"Software"), to deal in the Software without restriction, including
|
9
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
10
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
11
|
+
permit persons to whom the Software is furnished to do so, subject to
|
12
|
+
the following conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be
|
15
|
+
included in all copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
18
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
19
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
20
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
21
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
22
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
23
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
CI::Reporter is an add-on to Ruby testing frameworks like Test::Unit
|
2
|
+
or RSpec that allows you to generate XML reports of your test
|
3
|
+
runs. The resulting files can be read by a continuous integration
|
4
|
+
system that understands Ant's JUnit report XML format, thus allowing
|
5
|
+
your CI system to track test/spec successes and failures.
|
6
|
+
|
7
|
+
[![Build Status](https://travis-ci.org/nicksieger/ci_reporter.svg?branch=master)](https://travis-ci.org/nicksieger/ci_reporter)
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
CI::Reporter works with projects that use standard Rake tasks for
|
12
|
+
running tests. In this fashion, it hooks into testing frameworks using
|
13
|
+
environment variables recognized by these custom tasks to inject the
|
14
|
+
CI::Reporter code into the test run.
|
15
|
+
|
16
|
+
Each supported testing framework is provided by a separate gem:
|
17
|
+
|
18
|
+
* [Cucumber][ci-cuke]
|
19
|
+
* [Minitest][ci-mt]
|
20
|
+
* [RSpec][ci-rspec]
|
21
|
+
* [Spinach][ci-spin]
|
22
|
+
* [Test::Unit][ci-tu]
|
23
|
+
|
24
|
+
[ci-cuke]: https://github.com/ci-reporter/ci_reporter_cucumber
|
25
|
+
[ci-mt]: https://github.com/ci-reporter/ci_reporter_minitest
|
26
|
+
[ci-rspec]: https://github.com/ci-reporter/ci_reporter_rspec
|
27
|
+
[ci-spin]: https://github.com/ci-reporter/ci_reporter_spinach
|
28
|
+
[ci-tu]: https://github.com/ci-reporter/ci_reporter_test_unit
|
29
|
+
|
30
|
+
## Jenkins setup
|
31
|
+
|
32
|
+
1. Tick the box labelled "Publish JUnit test result report" in the job
|
33
|
+
configuration
|
34
|
+
|
35
|
+
2. Enter "test/reports/*.xml,spec/reports/*.xml" in the "Test report
|
36
|
+
XMLs" field (adjust this to suit which tests you are running)
|
37
|
+
|
38
|
+
Report files are written, by default, to the
|
39
|
+
<code>test/reports</code>, <code>features/reports</code> or
|
40
|
+
<code>spec/reports</code> subdirectory of your project. If you wish
|
41
|
+
to customize the location, simply set the environment variable
|
42
|
+
CI_REPORTS (either in the environment, on the Rake command line, or in
|
43
|
+
your Rakefile) to the location where they should go.
|
44
|
+
|
45
|
+
## Conditional reporting
|
46
|
+
|
47
|
+
You may not wish to always produce report files. There are two primary
|
48
|
+
ways to configure this:
|
49
|
+
|
50
|
+
### With environment variables
|
51
|
+
|
52
|
+
Use an environment variable in your Rakefile to control if CI:Reporter
|
53
|
+
will be invoked:
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
if ENV['GENERATE_REPORTS'] == 'true'
|
57
|
+
require 'ci/reporter/rake/rspec'
|
58
|
+
task :rspec => 'ci:setup:rspec'
|
59
|
+
end
|
60
|
+
```
|
61
|
+
|
62
|
+
You can either inject this variable in your CI or simply call `rake`
|
63
|
+
with the environment variable set:
|
64
|
+
|
65
|
+
```
|
66
|
+
GENERATE_REPORTS=true rake rspec
|
67
|
+
```
|
68
|
+
|
69
|
+
### With CI-specific Rake tasks
|
70
|
+
|
71
|
+
Instead of modifying your existing Rake tasks, create new ones:
|
72
|
+
|
73
|
+
```ruby
|
74
|
+
namespace :ci do
|
75
|
+
task :all => ['ci:setup:rspec', 'rspec']
|
76
|
+
end
|
77
|
+
```
|
78
|
+
|
79
|
+
Then use this Rake target in CI:
|
80
|
+
|
81
|
+
```
|
82
|
+
rake ci:all
|
83
|
+
```
|
84
|
+
|
85
|
+
## Environment Variables
|
86
|
+
|
87
|
+
* `CI_REPORTS`: if set, points to a directory where report files will
|
88
|
+
be written.
|
89
|
+
* `CI_CAPTURE`: if set to value "off", stdout/stderr capture will be
|
90
|
+
disabled.
|
data/Rakefile
CHANGED
@@ -1,103 +1,9 @@
|
|
1
|
-
|
2
|
-
# Copyright (c) 2006-2014 Nick Sieger <nicksieger@gmail.com>
|
3
|
-
# See the file LICENSE.txt included with the distribution for
|
4
|
-
# software license details.
|
5
|
-
#++
|
6
|
-
|
7
|
-
require 'bundler/setup'
|
8
|
-
|
9
|
-
begin
|
10
|
-
require 'hoe'
|
11
|
-
Hoe.plugin :git
|
12
|
-
require File.dirname(__FILE__) + '/lib/ci/reporter/version'
|
13
|
-
hoe = Hoe.spec("ci_reporter") do |p|
|
14
|
-
p.version = CI::Reporter::VERSION
|
15
|
-
p.group_name = "caldersphere"
|
16
|
-
p.readme_file = "README.rdoc"
|
17
|
-
p.urls = ["https://github.com/nicksieger/ci_reporter"]
|
18
|
-
p.author = "Nick Sieger"
|
19
|
-
p.email = "nick@nicksieger.com"
|
20
|
-
p.readme_file = 'README.rdoc'
|
21
|
-
p.summary = "CI::Reporter allows you to generate reams of XML for use with continuous integration systems."
|
22
|
-
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
|
23
|
-
p.description = p.paragraphs_of('README.rdoc', 0...1).join("\n\n")
|
24
|
-
p.extra_rdoc_files += ["README.rdoc"]
|
25
|
-
p.test_globs = ["spec/**/*_spec.rb"]
|
26
|
-
p.extra_deps << [ 'builder', '>= 2.1.2' ]
|
27
|
-
p.extra_dev_deps << [ 'hoe-git', '~> 1.5.0' ]
|
28
|
-
p.extra_dev_deps << [ 'cucumber', '>= 1.3.3' ]
|
29
|
-
p.extra_dev_deps << [ 'rspec', '> 2.0.0' ]
|
30
|
-
p.extra_dev_deps << [ 'test-unit', '> 2.4.9' ]
|
31
|
-
p.extra_dev_deps << [ 'minitest', '~> 2.2.0' ]
|
32
|
-
p.extra_dev_deps << [ 'spinach', '>= 0.8.7' ]
|
33
|
-
p.clean_globs += ["spec/reports", "acceptance/reports"]
|
34
|
-
p.license 'MIT'
|
35
|
-
end
|
36
|
-
hoe.spec.rdoc_options += ["-SHN", "-f", "darkfish"]
|
37
|
-
|
38
|
-
task :gemspec do
|
39
|
-
File.open("#{hoe.name}.gemspec", "w") {|f| f << hoe.spec.to_ruby }
|
40
|
-
end
|
41
|
-
rescue LoadError
|
42
|
-
puts "You really need Hoe installed to be able to package this gem"
|
43
|
-
end
|
44
|
-
|
45
|
-
def run_ruby_acceptance(cmd)
|
46
|
-
ENV['CI_REPORTS'] ||= "acceptance/reports"
|
47
|
-
if ENV['RUBYOPT']
|
48
|
-
opts = ENV['RUBYOPT']
|
49
|
-
ENV['RUBYOPT'] = nil
|
50
|
-
else
|
51
|
-
opts = "-rubygems"
|
52
|
-
end
|
53
|
-
begin
|
54
|
-
result_proc = proc {|ok,*| puts "Failures above are expected." unless ok }
|
55
|
-
ruby "-Ilib #{opts} #{cmd}", &result_proc
|
56
|
-
ensure
|
57
|
-
ENV['RUBYOPT'] = opts if opts != "-rubygems"
|
58
|
-
ENV.delete 'CI_REPORTS'
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
|
-
|
63
|
-
namespace :generate do
|
64
|
-
task :test_unit do
|
65
|
-
run_ruby_acceptance "-rci/reporter/rake/test_unit_loader acceptance/test_unit_example_test.rb"
|
66
|
-
end
|
67
|
-
|
68
|
-
task :minitest do
|
69
|
-
run_ruby_acceptance "-rci/reporter/rake/minitest_loader acceptance/minitest_example_test.rb"
|
70
|
-
end
|
71
|
-
|
72
|
-
task :rspec do
|
73
|
-
rspec = "#{Gem.loaded_specs['rspec-core'].gem_dir}/exe/rspec"
|
74
|
-
run_ruby_acceptance "-S #{rspec} --require ci/reporter/rake/rspec_loader --format CI::Reporter::RSpec acceptance/rspec_example_spec.rb"
|
75
|
-
end
|
76
|
-
|
77
|
-
task :cucumber do
|
78
|
-
cucumber = "#{Gem.loaded_specs['cucumber'].gem_dir}/bin/cucumber"
|
79
|
-
run_ruby_acceptance "-rci/reporter/rake/cucumber_loader -S #{cucumber} --format CI::Reporter::Cucumber acceptance/cucumber"
|
80
|
-
end
|
81
|
-
|
82
|
-
task :spinach do
|
83
|
-
spinach = "#{Gem.loaded_specs['spinach'].gem_dir}/bin/spinach"
|
84
|
-
run_ruby_acceptance "-I../../lib -rci/reporter/rake/spinach_loader -S #{spinach} -r ci_reporter -f acceptance/spinach/features"
|
85
|
-
end
|
86
|
-
|
87
|
-
task :clean do
|
88
|
-
rm_rf "acceptance/reports"
|
89
|
-
end
|
90
|
-
|
91
|
-
task :all => [:clean, :test_unit, :minitest, :rspec, :cucumber, :spinach]
|
92
|
-
end
|
93
|
-
|
94
|
-
task :acceptance => "generate:all"
|
95
|
-
|
1
|
+
require "bundler/gem_tasks"
|
96
2
|
require 'rspec/core/rake_task'
|
97
|
-
|
98
|
-
|
3
|
+
|
4
|
+
RSpec::Core::RakeTask.new(:rspec) do |t|
|
5
|
+
t.pattern = FileList['spec']
|
99
6
|
t.rspec_opts = "--color"
|
100
7
|
end
|
101
|
-
task :acceptance => :acceptance_spec
|
102
8
|
|
103
|
-
task :default => :
|
9
|
+
task :default => :rspec
|
data/ci_reporter.gemspec
CHANGED
@@ -1,57 +1,28 @@
|
|
1
|
-
#
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'ci/reporter/version'
|
2
5
|
|
3
|
-
Gem::Specification.new do |
|
4
|
-
|
5
|
-
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "ci_reporter"
|
8
|
+
spec.version = CI::Reporter::VERSION
|
9
|
+
spec.authors = ["Nick Sieger", "Jake Goulding"]
|
10
|
+
spec.email = ["nick@nicksieger.com", "jake.goulding@gmail.com"]
|
11
|
+
spec.homepage = "https://github.com/ci-reporter/ci_reporter"
|
12
|
+
spec.license = "MIT"
|
6
13
|
|
7
|
-
|
8
|
-
|
9
|
-
s.date = "2014-04-06"
|
10
|
-
s.description = "CI::Reporter is an add-on to Test::Unit, RSpec and Cucumber that allows you to generate XML reports of your test, spec and/or feature runs. The resulting files can be read by a continuous integration system that understands Ant's JUnit report XML format, thus allowing your CI system to track test/spec successes and failures."
|
11
|
-
s.email = "nick@nicksieger.com"
|
12
|
-
s.extra_rdoc_files = ["History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc"]
|
13
|
-
s.files = [".gemtest", ".hoerc", ".rspec", ".travis.before_install.sh", ".travis.yml", "Gemfile", "History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc", "Rakefile", "acceptance/cucumber/cucumber_example.feature", "acceptance/cucumber/step_definitions/development_steps.rb", "acceptance/minitest_example_test.rb", "acceptance/rspec_example_spec.rb", "acceptance/spinach/features/spinach_example.feature", "acceptance/spinach/features/steps/example_spinach_feature.rb", "acceptance/test_unit_example_test.rb", "acceptance/verification_spec.rb", "ci_reporter.gemspec", "lib/ci/reporter/core.rb", "lib/ci/reporter/cucumber.rb", "lib/ci/reporter/minitest.rb", "lib/ci/reporter/rake/cucumber.rb", "lib/ci/reporter/rake/cucumber_loader.rb", "lib/ci/reporter/rake/minitest.rb", "lib/ci/reporter/rake/minitest_loader.rb", "lib/ci/reporter/rake/rspec.rb", "lib/ci/reporter/rake/rspec_loader.rb", "lib/ci/reporter/rake/spinach.rb", "lib/ci/reporter/rake/spinach_loader.rb", "lib/ci/reporter/rake/test_unit.rb", "lib/ci/reporter/rake/test_unit_loader.rb", "lib/ci/reporter/rake/utils.rb", "lib/ci/reporter/report_manager.rb", "lib/ci/reporter/rspec.rb", "lib/ci/reporter/spinach.rb", "lib/ci/reporter/test_suite.rb", "lib/ci/reporter/test_unit.rb", "lib/ci/reporter/version.rb", "spec/ci/reporter/cucumber_spec.rb", "spec/ci/reporter/output_capture_spec.rb", "spec/ci/reporter/rake/rake_tasks_spec.rb", "spec/ci/reporter/report_manager_spec.rb", "spec/ci/reporter/rspec_spec.rb", "spec/ci/reporter/test_suite_spec.rb", "spec/ci/reporter/test_unit_spec.rb", "spec/spec_helper.rb", "stub.rake", "tasks/ci_reporter.rake"]
|
14
|
-
s.homepage = "https://github.com/nicksieger/ci_reporter"
|
15
|
-
s.licenses = ["MIT"]
|
16
|
-
s.rdoc_options = ["--main", "README.rdoc", "-SHN", "-f", "darkfish"]
|
17
|
-
s.require_paths = ["lib"]
|
18
|
-
s.rubygems_version = "1.8.23"
|
19
|
-
s.summary = "CI::Reporter allows you to generate reams of XML for use with continuous integration systems."
|
20
|
-
s.test_files = ["spec/ci/reporter/cucumber_spec.rb", "spec/ci/reporter/output_capture_spec.rb", "spec/ci/reporter/rake/rake_tasks_spec.rb", "spec/ci/reporter/report_manager_spec.rb", "spec/ci/reporter/rspec_spec.rb", "spec/ci/reporter/test_suite_spec.rb", "spec/ci/reporter/test_unit_spec.rb"]
|
14
|
+
spec.summary = %q{Connects Ruby test frameworks to CI systems via JUnit reports.}
|
15
|
+
spec.description = %q{CI::Reporter is an add-on to Ruby testing frameworks that allows you to generate XML reports of your test runs. The resulting files can be read by a continuous integration system that understands Ant's JUnit report format.}
|
21
16
|
|
22
|
-
|
23
|
-
|
17
|
+
spec.files = `git ls-files -z`.split("\x0")
|
18
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features|acceptance)/})
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
spec.extra_rdoc_files = ["History.txt", "LICENSE.txt", "README.md"]
|
24
22
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
s.add_development_dependency(%q<rspec>, ["> 2.0.0"])
|
31
|
-
s.add_development_dependency(%q<test-unit>, ["> 2.4.9"])
|
32
|
-
s.add_development_dependency(%q<minitest>, ["~> 2.2.0"])
|
33
|
-
s.add_development_dependency(%q<spinach>, [">= 0.8.7"])
|
34
|
-
s.add_development_dependency(%q<hoe>, ["~> 3.7"])
|
35
|
-
else
|
36
|
-
s.add_dependency(%q<builder>, [">= 2.1.2"])
|
37
|
-
s.add_dependency(%q<rdoc>, ["~> 4.0"])
|
38
|
-
s.add_dependency(%q<hoe-git>, ["~> 1.5.0"])
|
39
|
-
s.add_dependency(%q<cucumber>, [">= 1.3.3"])
|
40
|
-
s.add_dependency(%q<rspec>, ["> 2.0.0"])
|
41
|
-
s.add_dependency(%q<test-unit>, ["> 2.4.9"])
|
42
|
-
s.add_dependency(%q<minitest>, ["~> 2.2.0"])
|
43
|
-
s.add_dependency(%q<spinach>, [">= 0.8.7"])
|
44
|
-
s.add_dependency(%q<hoe>, ["~> 3.7"])
|
45
|
-
end
|
46
|
-
else
|
47
|
-
s.add_dependency(%q<builder>, [">= 2.1.2"])
|
48
|
-
s.add_dependency(%q<rdoc>, ["~> 4.0"])
|
49
|
-
s.add_dependency(%q<hoe-git>, ["~> 1.5.0"])
|
50
|
-
s.add_dependency(%q<cucumber>, [">= 1.3.3"])
|
51
|
-
s.add_dependency(%q<rspec>, ["> 2.0.0"])
|
52
|
-
s.add_dependency(%q<test-unit>, ["> 2.4.9"])
|
53
|
-
s.add_dependency(%q<minitest>, ["~> 2.2.0"])
|
54
|
-
s.add_dependency(%q<spinach>, [">= 0.8.7"])
|
55
|
-
s.add_dependency(%q<hoe>, ["~> 3.7"])
|
56
|
-
end
|
23
|
+
spec.add_dependency "builder", ">= 2.1.2"
|
24
|
+
|
25
|
+
spec.add_development_dependency "rake"
|
26
|
+
spec.add_development_dependency "rdoc", "~> 4.0"
|
27
|
+
spec.add_development_dependency "rspec", "~> 2.0"
|
57
28
|
end
|
data/gemfiles/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Gemfile.*.lock
|
data/lib/ci/reporter/core.rb
CHANGED
@@ -0,0 +1,31 @@
|
|
1
|
+
module CI
|
2
|
+
module Reporter
|
3
|
+
module Internal
|
4
|
+
def run_ruby_acceptance(cmd)
|
5
|
+
ENV['CI_REPORTS'] ||= "acceptance/reports"
|
6
|
+
if ENV['RUBYOPT']
|
7
|
+
opts = ENV['RUBYOPT']
|
8
|
+
ENV['RUBYOPT'] = nil
|
9
|
+
else
|
10
|
+
opts = "-rubygems"
|
11
|
+
end
|
12
|
+
begin
|
13
|
+
result_proc = proc {|ok,*| puts "Failures above are expected." unless ok }
|
14
|
+
ruby "-Ilib #{opts} #{cmd}", &result_proc
|
15
|
+
ensure
|
16
|
+
ENV['RUBYOPT'] = opts if opts != "-rubygems"
|
17
|
+
ENV.delete 'CI_REPORTS'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def save_env(v)
|
22
|
+
ENV["PREV_#{v}"] = ENV[v]
|
23
|
+
end
|
24
|
+
|
25
|
+
def restore_env(v)
|
26
|
+
ENV[v] = ENV["PREV_#{v}"]
|
27
|
+
ENV.delete("PREV_#{v}")
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|