Skip to content

Instantly share code, notes, and snippets.

blimey74 blimey74

Block or report user

Report or block blimey74

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@blimey74
blimey74 / Rakefile
Created Sep 5, 2013
A gist for adding a CI rake task for project hydra applications so that Jetty gets started and stopped between test runs, this code should guarantee that Solr is up before starting your rspec or cucumber tests.
View Rakefile
require 'jettywrapper'
require 'rsolr'
desc 'Start up jetty and run rspec and cucumber tests'
task :ci => ['jetty:unzip', 'jetty:config'] do
puts 'running continuous integration'
jetty_params = Jettywrapper.load_config
error = Jettywrapper.wrap(jetty_params) do
ping_solr #check solr is up before starting the tests
Rake::Task['spec'].invoke
You can’t perform that action at this time.