Sha256: f410b518af318c9a1e732efedcefb9b3b8f1a4c742b116d2ea84a935a74a39f3

Contents?: true

Size: 1.2 KB

Versions: 15

Compression:

Stored size: 1.2 KB

Contents

#!/usr/bin/env rake
begin
  require 'bundler/setup'
rescue LoadError
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
begin
  require 'rdoc/task'
rescue LoadError
  require 'rdoc/rdoc'
  require 'rake/rdoctask'
  RDoc::Task = Rake::RDocTask
end

RDoc::Task.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'HydraEditor'
  rdoc.options << '--line-numbers'
  rdoc.rdoc_files.include('README.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

require 'solr_wrapper/rake_task'
require 'fcrepo_wrapper'
require 'active_fedora/rake_support'
require 'engine_cart/rake_task'

require 'jasmine'
load 'jasmine/tasks/jasmine.rake'

import "#{Gem.loaded_specs['jasmine'].full_gem_path}/lib/jasmine/tasks/jasmine.rake"

# Set up the test application prior to running jasmine tasks.
task 'jasmine:require' => :setup_test_server
task :setup_test_server do
  require 'engine_cart'
  EngineCart.load_application!
end

desc 'Continuous Integration'
task ci: ['engine_cart:generate'] do
  ENV['environment'] = "test"
  with_test_server do
    Rake::Task['spec'].invoke
  end
end

task default: :ci

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hydra-editor-5.0.5 Rakefile
hydra-editor-5.0.4 Rakefile
hydra-editor-5.0.3 Rakefile
hydra-editor-5.0.2 Rakefile
hydra-editor-5.0.1 Rakefile
hydra-editor-5.0.0 Rakefile
hydra-editor-4.0.2 Rakefile
hydra-editor-4.0.1 Rakefile
hydra-editor-3.4.0 Rakefile
hydra-editor-3.4.0.beta Rakefile
hydra-editor-3.3.2 Rakefile
hydra-editor-3.3.1 Rakefile
hydra-editor-3.2.1 Rakefile
hydra-editor-3.2.0 Rakefile
hydra-editor-3.1.2 Rakefile