Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CI stats for the ACM

Change-Id: I469c1f73693bf64524d400b33142eae9f7774664
  • Loading branch information...
commit b789e208717b56e79af57e3bb47ce8bf5ae4b61f 1 parent 9cb371e
@joeldsa joeldsa authored
View
1  Gemfile
@@ -23,4 +23,5 @@ group :test do
gem "rspec"
gem "sqlite3"
gem "simplecov", :platforms => :ruby_19
+ gem "ci_reporter"
end
View
4 Gemfile.lock
@@ -2,6 +2,9 @@ GEM
remote: http://rubygems.org/
specs:
SystemTimer (1.2.3)
+ builder (3.0.0)
+ ci_reporter (1.6.5)
+ builder (>= 2.1.2)
daemons (1.1.6)
diff-lcs (1.1.3)
eventmachine (0.12.10)
@@ -44,6 +47,7 @@ PLATFORMS
DEPENDENCIES
SystemTimer
+ ci_reporter
pg
rack-test
rake
View
5 Rakefile
@@ -12,6 +12,9 @@ task "spec:functional" => ["bundler:install:test", "test:spec:functional"]
desc "Run specs using RCov"
task "spec:cov" => ["bundler:install:test", "test:spec:rcov"]
+desc "Run specs using RCov"
+task "spec:ci_stats" => ["test:spec:ci_stats"]
+
namespace "bundler" do
desc "Install gems"
@@ -32,7 +35,7 @@ end
namespace "test" do
- ["spec", "spec:unit", "spec:functional", "spec:rcov"].each do |task_name|
+ ["spec", "spec:unit", "spec:functional", "spec:rcov", "spec:ci_stats"].each do |task_name|
task task_name do
sh("cd spec && rake #{task_name}")
end
View
5 spec/Rakefile
@@ -7,6 +7,7 @@ require "bundler"
Bundler.setup(:default, :test)
require "rspec/core/rake_task"
+require 'ci/reporter/rake/rspec'
coverage_dir = File.expand_path(File.join(File.dirname(__FILE__), "..", "spec_coverage"))
reports_dir = File.expand_path(File.join(File.dirname(__FILE__), "..", "spec_reports"))
@@ -49,6 +50,10 @@ namespace "spec" do
t.pattern = "functional/**/*_spec.rb"
end
+ RSpec::Core::RakeTask.new(:ci_stats => ["ci:setup:rspec"]) do |t|
+ t.pattern = '**/*_spec.rb'
+ end
+
require 'simplecov'
task :run_rcov => :cleanup_coverage do
View
BIN  vendor/cache/builder-3.0.0.gem
Binary file not shown
View
BIN  vendor/cache/ci_reporter-1.6.5.gem
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.