Sha256: 21a3e433886d3af0bf3b51ef68ece878b692f875d02de4ed40fa3cc0948950aa

Contents?: true

Size: 780 Bytes

Versions: 9

Compression:

Stored size: 780 Bytes

Contents

# (c) Copyright 2006-2007 Nick Sieger <nicksieger@gmail.com>
# See the file LICENSE.txt included with the distribution for
# software license details.

namespace :ci do
  namespace :setup do
    task :spec_report_cleanup do
      rm_rf ENV["CI_REPORTS"] || "spec/reports"
    end

    task :rspec => :spec_report_cleanup do
      spec_opts = ["--require", "#{File.dirname(__FILE__)}/rspec_loader.rb",
        "--format", "CI::Reporter::RSpec"].join(" ")
      ENV["SPEC_OPTS"] = "#{ENV['SPEC_OPTS']} #{spec_opts}"
    end

    task :rspecdoc => :spec_report_cleanup do
      spec_opts = ["--require", "#{File.dirname(__FILE__)}/rspec_loader.rb",
        "--format", "CI::Reporter::RSpecDoc"].join(" ")
      ENV["SPEC_OPTS"] = "#{ENV['SPEC_OPTS']} #{spec_opts}"
    end
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
GICodeWarrior-ci_reporter-1.6.1 lib/ci/reporter/rake/rspec.rb
GICodeWarrior-ci_reporter-1.6.2 lib/ci/reporter/rake/rspec.rb
schubert-ci_reporter-1.6.2 lib/ci/reporter/rake/rspec.rb
schubert-ci_reporter-1.6.1 lib/ci/reporter/rake/rspec.rb
ci_reporter-1.5.1 lib/ci/reporter/rake/rspec.rb
ci_reporter-1.5.2 lib/ci/reporter/rake/rspec.rb
ci_reporter-1.5.3 lib/ci/reporter/rake/rspec.rb
ci_reporter-1.6.0 lib/ci/reporter/rake/rspec.rb
ci_reporter-1.5 lib/ci/reporter/rake/rspec.rb