Sha256: 00b71d52ea1ae04fda97ac70b3fa11dedae30f248714e3ea7c098f4ea68c3470
Contents?: true
Size: 1.5 KB
Versions: 17
Compression:
Stored size: 1.5 KB
Contents
APP_ROOT = File.expand_path("#{File.dirname(__FILE__)}/../../") unless defined?(APP_ROOT) require 'jettywrapper' JETTY_ZIP_BASENAME = 'master' Jettywrapper.url = "https://github.com/projecthydra/hydra-jetty/archive/#{JETTY_ZIP_BASENAME}.zip" namespace :cul_hydra do begin 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 rescue Exception => e puts "Exception creating rspec rake tasks: check for development environment?" puts e 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
17 entries across 17 versions & 1 rubygems