Sha256: 06c2ac1214b8c5e7ee7c0d031fbf1cd13e291317e4cf7b523f738dcb46423981
Contents?: true
Size: 1.35 KB
Versions: 3
Compression:
Stored size: 1.35 KB
Contents
APP_ROOT = File.expand_path("#{File.dirname(__FILE__)}/../../") unless defined?(APP_ROOT) require 'jettywrapper' JETTY_ZIP_BASENAME = '7.x-stable' Jettywrapper.url = "https://github.com/projecthydra/hydra-jetty/archive/#{JETTY_ZIP_BASENAME}.zip" namespace :cul_hydra do require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:rspec) do |spec| spec.pattern = FileList['spec/**/*_spec.rb'] spec.pattern += FileList['spec/*_spec.rb'] spec.rspec_opts = ['--backtrace'] if ENV['CI'] end RSpec::Core::RakeTask.new(:rcov) do |spec| spec.pattern = FileList['spec/**/*_spec.rb'] spec.pattern += FileList['spec/*_spec.rb'] spec.rcov = true end desc "CI build" task :ci do ENV['environment'] = "test" #Rake::Task["active_fedora:configure_jetty"].invoke jetty_params = Jettywrapper.load_config error = Jettywrapper.wrap(jetty_params) do Rake::Task["cul_scv_hydra:cmodel:reload_all"].invoke Rake::Task['cul_hydra:coverage'].invoke end raise "test failures: #{error}" if error end desc "Execute specs with coverage" task :coverage do # Put spec opts in a file named .rspec in root ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby" ENV['COVERAGE'] = 'true' unless ruby_engine == 'jruby' # Rake::Task["active_fedora:fixtures"].invoke Rake::Task["cul_hydra:rspec"].invoke end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cul_scv_hydra-0.21.4 | lib/tasks/cul_hydra_dev.rake |
cul_scv_hydra-0.21.3 | lib/tasks/cul_hydra_dev.rake |
cul_scv_hydra-0.21.2 | lib/tasks/cul_hydra_dev.rake |