From 2d57b5dc9a52d05d44d8f8d7cacb9caf43027c4b Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Mon, 11 Oct 2010 22:24:48 -0700 Subject: [PATCH 1/3] bash script to run specs against multiple versions of Ruby on CI --- ci.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ci.sh diff --git a/ci.sh b/ci.sh new file mode 100644 index 000000000..63bab3bcf --- /dev/null +++ b/ci.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +echo "*************************************************************************************************" && +echo "* ruby 1.8.7-p249 build *" && +echo "*************************************************************************************************" && +echo "" && +source /usr/local/rvm/scripts/rvm && rvm use ruby-1.8.7-p249 && bundle install && bundle exec rake ci && +echo "" && +echo "*************************************************************************************************" && +echo "* ruby 1.9.2-p0 build *" && +echo "*************************************************************************************************" && +echo "" && +source /usr/local/rvm/scripts/rvm && rvm use ruby-1.9.2-p0 && bundle install && bundle exec rake ci \ No newline at end of file From e3e76ec3e0f1d2d9cf45c14a962f94d153b7f93b Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Mon, 11 Oct 2010 22:33:44 -0700 Subject: [PATCH 2/3] correct permissions on bash script for CI --- ci.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 ci.sh diff --git a/ci.sh b/ci.sh old mode 100644 new mode 100755 From 546401cbecb81bd151a2f874833b717c3b4d6ef0 Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Mon, 11 Oct 2010 22:37:58 -0700 Subject: [PATCH 3/3] Gemfile.lock is different in 1.9.2, so we need to remove it after running specs so the next pull succeeds. --- ci.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ci.sh b/ci.sh index 63bab3bcf..e631517e1 100755 --- a/ci.sh +++ b/ci.sh @@ -4,10 +4,17 @@ echo "************************************************************************** echo "* ruby 1.8.7-p249 build *" && echo "*************************************************************************************************" && echo "" && -source /usr/local/rvm/scripts/rvm && rvm use ruby-1.8.7-p249 && bundle install && bundle exec rake ci && +source /usr/local/rvm/scripts/rvm && +rvm use ruby-1.8.7-p249 && +bundle install && +bundle exec rake ci && echo "" && echo "*************************************************************************************************" && echo "* ruby 1.9.2-p0 build *" && echo "*************************************************************************************************" && echo "" && -source /usr/local/rvm/scripts/rvm && rvm use ruby-1.9.2-p0 && bundle install && bundle exec rake ci \ No newline at end of file +source /usr/local/rvm/scripts/rvm && +rvm use ruby-1.9.2-p0 && +bundle install && +bundle exec rake ci && +rm Gemfile.lock \ No newline at end of file