Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (12 sloc) 388 Bytes
require 'rspec/core/rake_task'
require 'ci/reporter/rake/rspec'
namespace :ci do
desc "Run specs producing results for CI"
task "spec" => ["ci:setup:rspec", "^spec"]
end
reports_dir = File.expand_path("spec_reports")
ENV['CI_REPORTS'] = reports_dir
RSpec::Core::RakeTask.new do |t|
t.pattern = "spec/**/*_spec.rb"
t.rspec_opts = ["--format", "documentation", "--colour"]
end