Skip to content

Instantly share code, notes, and snippets.

@endeepak
Forked from iafonov/gist:1113433
Last active August 29, 2015 14:10
Show Gist options
  • Save endeepak/07da16b444bd8e58386b to your computer and use it in GitHub Desktop.
Save endeepak/07da16b444bd8e58386b 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