Created
September 1, 2015 07:47
-
-
Save deepak/4d3b9f28f4c9793ca3a5 to your computer and use it in GitHub Desktop.
CI script for a rails project
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
#!/bin/bash | |
set -e | |
export RAILS_ENV=test | |
export DISABLE_SPRING=1 | |
source /usr/local/rvm/scripts/rvm | |
rvm use ruby-2.2.1 | |
bundle install --path=vendor > log/bundle_install.log | |
bin/rake db:drop db:create db:schema:load db:abort_if_pending_migrations | |
SPEC_OPTS="--profile 20" bin/bundle exec rspec spec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment