-
-
Save neomindryan/710937 to your computer and use it in GitHub Desktop.
This file contains 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/sh | |
# When building the app from within Integrity, there are environment variables set that make it difficult to use the correct gems. | |
# This script resets those environment variables, and replaces them with our RVM values. | |
# This script started its life as a gift from #integrity on irc.freenode.net: http://gist.github.com/560855 (poster named sr) | |
# This script is specific to a single, complicated client, but it's useful as a reference. | |
# We're using 1.8.6-head for ci because ruby 1.8.6 has a known issue on Ubunto 64bit that causes date to work improperly | |
# more information: http://www.ruby-forum.com/topic/198581 | |
# You can test your version of ruby like this: ruby -e 'p 1867216.25' | |
# TODO: find a way to pull RVM info from .rvmrc | |
RVM_VERSION='ruby-1.8.6-head' | |
RVM_GEMSET='benefits' | |
set -e | |
set -x | |
unset -v RUBYOPT | |
unset -v BUNDLE_GEMFILE | |
unset -v BUNDLE_PATH | |
unset -v BUNDLE_BIN_PATH | |
unset -v SSH_KEY | |
unset -v GIT_SSH | |
unset -v GEM_HOME | |
unset -v GEM_PATH | |
rvm $RVM_VERSION@$RVM_GEMSET | |
HOME="/home/`whoami`" | |
GEM_HOME=$HOME/.rvm/gems/$RVM_VERSION@$RVM_GEMSET | |
GEM_PATH=$HOME/.rvm/gems/$RVM_VERSION@$RVM_GEMSET:$HOME/.rvm/gems/$RVM_VERSION@global | |
PATH=$GEM_HOME/bin:$PATH | |
export HOME PATH GEM_HOME GEM_PATH | |
env | |
bundle install | |
rake aheeva:structure:load db:structure:load FORCE_YES=1 | |
time rake |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment