diff --git a/ci.sh b/ci.sh
index e631517e16dab9cf63bbc06cef89e8909c15ab7c..dd78a9b2cc95ddf57f16cd8131497f7b2dae0683 100755
--- a/ci.sh
+++ b/ci.sh
@@ -4,6 +4,7 @@ echo "**************************************************************************
 echo "*                                  ruby 1.8.7-p249 build                                        *" &&
 echo "*************************************************************************************************" &&
 echo "" &&
+rm Gemfile.lock &&
 source /usr/local/rvm/scripts/rvm &&
 rvm use ruby-1.8.7-p249 &&
 bundle install &&
@@ -13,8 +14,8 @@ echo "**************************************************************************
 echo "*                                   ruby 1.9.2-p0 build                                         *" &&
 echo "*************************************************************************************************" &&
 echo "" &&
+rm Gemfile.lock &&
 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
+bundle exec rake ci