Sha256: 3ca83ac8d8284a67d7fe8fed5306acfb1753056c8d8363aa55a44f32bc1cbc27

Contents?: true

Size: 1.16 KB

Versions: 4

Compression:

Stored size: 1.16 KB

Contents

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

require File.expand_path('../utils', __FILE__)

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", CI::Reporter.maybe_quote_filename("#{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", CI::Reporter.maybe_quote_filename("#{File.dirname(__FILE__)}/rspec_loader.rb"),
        "--format", "CI::Reporter::RSpecDoc"].join(" ")
      ENV["SPEC_OPTS"] = "#{ENV['SPEC_OPTS']} #{spec_opts}"
    end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ci_reporter-1.6.9 lib/ci/reporter/rake/rspec.rb
ci_reporter-1.6.8 lib/ci/reporter/rake/rspec.rb
ci_reporter-1.6.7 lib/ci/reporter/rake/rspec.rb
ci_reporter-1.6.6 lib/ci/reporter/rake/rspec.rb