Created
June 28, 2012 17:45
-
-
Save jorgemanrubia/3012801 to your computer and use it in GitHub Desktop.
script for preparing the execution of the build pipeline of zendone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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