Sha256: 92fee20b0038769330d9831e77a5b24ddb16702df5fa7162aa9eaccfe0a050e6

Contents?: true

Size: 588 Bytes

Versions: 5

Compression:

Stored size: 588 Bytes

Contents

desc "Run Continuous Integration Suite (tests, coverage, docs)" 
task :ci do 
  Rake::Task["hydra:jetty:config"].invoke

  require 'jettywrapper'
  jetty_params = Jettywrapper.load_config.merge({
    :jetty_home => File.expand_path(File.dirname(__FILE__) + '/../../jetty'),
    :jetty_port => 8983,
    :startup_wait => 25
  })
  
  Jettywrapper.wrap(jetty_params) do
    Rails.env = "test"
    ENV['COVERAGE'] ||= 'true'
    Rake::Task['rspec'].invoke
  end
end

desc "Run all specs"
RSpec::Core::RakeTask.new(:rspec) do |spec|
  spec.rspec_opts = ["-c", "-r ./spec/spec_helper.rb"]
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hydra-tutorial-0.2.1 templates/ci_with_coverage.rake
hydra-tutorial-0.2.0 templates/ci_with_coverage.rake
hydra-tutorial-0.1.3 or_templates/add_tests/ci_with_coverage.rake
hydra-tutorial-0.1.2 or_templates/add_tests/ci_with_coverage.rake
hydra-tutorial-0.1.0 or_templates/add_tests/ci_with_coverage.rake