Sha256: 0f20f80458d6afb944c9892fb1187a3f369fe370814111beff992a9935eecf31
Contents?: true
Size: 824 Bytes
Versions: 5
Compression:
Stored size: 824 Bytes
Contents
require 'bundler/gem_tasks' require 'jettywrapper' require 'rspec/core' require 'rspec/core/rake_task' require 'engine_cart/rake_task' require 'rubocop/rake_task' Dir.glob('lib/tasks/*.rake').each { |r| import r } desc 'Run style checker' RuboCop::RakeTask.new(:rubocop) do |task| task.requires << 'rubocop-rspec' task.fail_on_error = true end desc 'Run test suite and style checker' task :spec do Rake::Task['rubocop'].invoke RSpec::Core::RakeTask.new(:spec) end desc 'Spin up hydra-jetty and run specs' task ci: ['jetty:clean', 'jetty:config'] do puts 'running continuous integration' jetty_params = Jettywrapper.load_config jetty_params[:startup_wait] = 90 error = Jettywrapper.wrap(jetty_params) do Rake::Task['spec'].invoke end fail "test failures: #{error}" if error end task default: :ci
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
hydra-works-0.6.0 | Rakefile |
hydra-works-0.5.0 | Rakefile |
hydra-works-0.4.0 | Rakefile |
hydra-works-0.3.0 | Rakefile |
hydra-works-0.2.0 | Rakefile |