Skip to content

Instantly share code, notes, and snippets.

@deepak
Created September 1, 2015 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deepak/4d3b9f28f4c9793ca3a5 to your computer and use it in GitHub Desktop.
Save deepak/4d3b9f28f4c9793ca3a5 to your computer and use it in GitHub Desktop.
CI script for a rails project
#!/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