Skip to content

Instantly share code, notes, and snippets.

@jorgemanrubia
Created June 28, 2012 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorgemanrubia/3012801 to your computer and use it in GitHub Desktop.
Save jorgemanrubia/3012801 to your computer and use it in GitHub Desktop.
script for preparing the execution of the build pipeline of zendone
#!/bin/sh
script/killall
# Deletes trash files
rm -f tmp/*.oauth
rm -f log/*.log
rm -f db/schema.rb
rm -f tmp/evernote_session_data
rm -f rerun.txt
rm -f cucumber-*.txt
rm -rf public/assets/
cp config/database.yml.sample config/database.yml
# Check that jammit works properly (early detection of JS compression problems)
jammit -f
OUT=$?
if [ $OUT -eq 1 ];then
exit 1
fi
# bundle install
bundle install
#Prepare database
rake db:migrate:reset
rake db:seed
rake db:migrate:reset RAILS_ENV=test
rake parallel:prepare[$HUDSON_JOBS]
rake admin:heroku:prepare:local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment