Skip to content

Instantly share code, notes, and snippets.

@iafonov
Created July 29, 2011 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save iafonov/1113433 to your computer and use it in GitHub Desktop.
Save iafonov/1113433 to your computer and use it in GitHub Desktop.
#!/bin/sh
unset DISPLAY
if [ ! -f /tmp/.X99-lock ]; then
Xvfb :99 -ac &
fi
export DISPLAY=:99
bundle install --path ../bundle --quiet --without development production &&
bundle exec rake RAILS_ENV=test db:migrate spec &&
bundle exec rake RAILS_ENV=cucumber db:migrate cucumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment