Skip to content

Instantly share code, notes, and snippets.

@pgwillia
Last active August 29, 2015 14:10
Show Gist options
  • Save pgwillia/7be750bb843736a4d049 to your computer and use it in GitHub Desktop.
Save pgwillia/7be750bb843736a4d049 to your computer and use it in GitHub Desktop.
take Sufia for a spin
#! /bin/sh -x
yum install -y sqlite-devel
rm -Rf sufia
git clone https://github.com/projecthydra/sufia.git
cd sufia
git checkout -t origin/v6.1.0
service redis_6379 restart
rm -Rf spec/internal # removes any existing test app
bundle update
killall java # kill any running jetties
bundle exec rake jetty:clean # downloads and unpacks hydra-jetty from tmp/master.zip
bundle exec rake sufia:jetty:config # extra solr configuration
bundle exec rake jetty:start
bundle exec rake engine_cart:generate # builds new test app at spec/internal
sed -i '/# config.fits_path = "fits.sh"/c\ config.fits_path = "fits"' spec/internal/config/initializers/sufia.rb
bundle update sass-rails
bundle exec rspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment