Created
October 14, 2012 10:05
-
-
Save lancelakey/3888156 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env bash | |
set -x | |
ps axfu | grep -iE 'ruby|java|node|redis|mongo|cassandra' | |
/etc/init.d/redis-server stop | |
/etc/init.d/mongodb stop | |
/etc/init.d/cassandra stop | |
rm -rf /var/lib/cassandra/* | |
rm -rf /usr/lib/ruby/gems/1.9.1/ | |
rm -rf data/ | |
rm -rf node_modules/ | |
gem install rake rspec | |
/etc/init.d/cassandra start | |
sleep 10 | |
rake storage | |
/etc/init.d/cassandra stop | |
timeout --kill-after=1m --signal=2 20s mongod run --port 27018 --quiet --smallfiles --dbpath data/mongo | |
rake update | |
timeout --kill-after=6m --signal=2 5m rake test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment