Skip to content
Browse files

Way too long coming: add rake task for ci

Change-Id: I4593d4898b94590e809c822cce5ff627063194bf
  • Loading branch information...
1 parent a8bfedc commit 761b7bc83c454b75df32bda00522811f230c3b68 mpage committed
Showing with 19 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +2 −0 Gemfile
  3. +6 −0 Gemfile.lock
  4. +10 −0 Rakefile
View
1 .gitignore
@@ -1,2 +1,3 @@
directory_server/pkg
directory_server/bin
+spec_reports
View
2 Gemfile
@@ -22,4 +22,6 @@ gem "steno", :git => "https://github.com/cloudfoundry/steno.git"
group :test do
gem "rspec"
gem "rack-test"
+ gem "rcov"
+ gem "ci_reporter"
end
View
6 Gemfile.lock
@@ -67,6 +67,9 @@ GEM
addressable (2.2.8)
backports (2.6.4)
beefcake (0.3.7)
+ builder (3.0.0)
+ ci_reporter (1.7.0)
+ builder (>= 2.1.2)
daemons (1.1.8)
diff-lcs (1.1.3)
em-http-request (1.0.0.beta.3)
@@ -94,6 +97,7 @@ GEM
rack-test (0.6.1)
rack (>= 1.0)
rake (0.9.2.2)
+ rcov (0.9.11)
rspec (2.11.0)
rspec-core (~> 2.11.0)
rspec-expectations (~> 2.11.0)
@@ -114,6 +118,7 @@ PLATFORMS
ruby
DEPENDENCIES
+ ci_reporter
em-http-request (~> 1.0.0.beta.3)
em-posix-spawn!
em-warden-client!
@@ -123,6 +128,7 @@ DEPENDENCIES
rack
rack-test
rake
+ rcov
rspec
steno!
thin
View
10 Rakefile
@@ -1,8 +1,18 @@
# coding: UTF-8
+require "ci/reporter/rake/rspec"
require "rspec/core/rake_task"
require "rspec/core/version"
+reports_dir = File.expand_path("spec_reports")
+
+ENV["CI_REPORTS"] = reports_dir
+
+namespace :ci do
+ desc "Run specs producing results for CI"
+ task "spec" => ["ci:setup:rspec", "^spec"]
+end
+
desc "Run all examples"
RSpec::Core::RakeTask.new(:spec) do |t|
# See .rspec

0 comments on commit 761b7bc

Please sign in to comment.
Something went wrong with that request. Please try again.