#!/bin/bash

echo -e "\n\n==== Setup ===="
source /etc/profile
git fetch && git reset origin/master --hard

echo -e "\n\n==== Ruby 1.9.2 Head ===="
rvm use 1.9.2-head@ruby-amqp
gem install bundler
bundle install --local; echo
bundle exec rspec spec
return_status=$?

echo -e "\n\n==== Ruby 1.8.7 ===="
rvm use 1.8.7@ruby-amqp
gem install bundler
bundle install --local; echo
bundle exec rspec spec
return_status=$(expr $return_status + $?)

test $return_status -eq 0

#!/bin/bash

echo -e "\n\n==== Setup ===="
source /etc/profile
git fetch && git reset origin/master --hard

echo -e "\n\n==== Ruby 1.9.2 Head ===="
rvm use 1.9.2-head@ruby-amqp
gem install bundler --no-ri --no-rdoc
bundle install --local; echo
bundle exec rspec spec
return_status=$?

echo -e "\n\n==== Ruby 1.8.7 ===="
rvm use 1.8.7@ruby-amqp
gem install bundler --no-ri --no-rdoc
bundle install --local; echo
bundle exec rspec spec
return_status=$(expr $return_status + $?)

test $return_status -eq 0

Save time by not installing documentation.
Save time by not installing documentation.
