Skip to content

Instantly share code, notes, and snippets.

@blimey74
blimey74 / Rakefile
Created September 5, 2013 11:26
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.
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
### Keybase proof
I hereby claim:
* I am blimey on github.
* I am jatunwirecom (https://keybase.io/jatunwirecom) on keybase.
* I have a public key ASCL7UF8ijGc5YckxPRbhrLVf4GeZz12EOYMxEAemzlDRgo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am blimey on github.
  • I am jatunwirecom (https://keybase.io/jatunwirecom) on keybase.
  • I have a public key ASCL7UF8ijGc5YckxPRbhrLVf4GeZz12EOYMxEAemzlDRgo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am blimey74 on github.
  • I am jatunwirecom (https://keybase.io/jatunwirecom) on keybase.
  • I have a public key ASCL7UF8ijGc5YckxPRbhrLVf4GeZz12EOYMxEAemzlDRgo

To claim this, I am signing this object: