Sha256: 39b2df8bcaa277b46da57d288da611ae0938ea732c57a5c8e9652195de033fa9

Contents?: true

Size: 698 Bytes

Versions: 27

Compression:

Stored size: 698 Bytes

Contents

#!/bin/bash

# Set default variables (if not before with ENV variables)
if [ -z $CC_RUBY ]; then CC_RUBY=1.9.2; fi
if [ -z $CC_GEMSET ]; then CC_GEMSET=crowdblog; fi

# Initialize RVM
source "$HOME/.rvm/scripts/rvm"

# Change to the gemset
rvm $CC_RUBY@$CC_GEMSET --create --install

# Is bundler installed?
which bundle || gem install bundler

echo "-- Install Gem dependencies"
bundle install

echo "-- Migrations"
# both rake db:migrates needed
bundle exec rake db:migrate
RAILS_ENV=test bundle exec rake db:migrate

echo "-- Build project"
export DISPLAY=:0.0
bundle exec rake
EXIT_CODE=$?

#echo "-- METRICS"
#which metrical || gem install metrical
#metrical > /dev/null 2>&1

exit $EXIT_CODE

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
crowdblog-0.6.2 script/build
crowdblog-0.6.0 script/build
crowdblog-0.5.0 script/build
crowdblog-0.3.3 script/build
crowdblog-0.4.0 script/build
crowdblog-0.3.2 script/build
crowdblog-0.3.1 script/build
crowdblog-0.3.0 script/build
crowdblog-0.2.0 script/build
crowdblog-0.1.3 script/build
crowdblog-0.1.2 script/build
crowdblog-0.1.1 script/build
crowdblog-0.1.0 script/build
crowdblog-0.0.16 script/build
crowdblog-0.0.15 script/build
crowdblog-0.0.14 script/build
crowdblog-0.0.13 script/build
crowdblog-0.0.12 script/build
crowdblog-0.0.10 script/build
crowdblog-0.0.9 script/build