buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject svn commit: r1389018 - /buildr/trunk/.rvmrc
Date Sun, 23 Sep 2012 11:19:41 GMT
Author: donaldp
Date: Sun Sep 23 11:19:41 2012
New Revision: 1389018

URL: http://svn.apache.org/viewvc?rev=1389018&view=rev
Log:
If running in the ci then remove the existing gemset

Modified:
    buildr/trunk/.rvmrc

Modified: buildr/trunk/.rvmrc
URL: http://svn.apache.org/viewvc/buildr/trunk/.rvmrc?rev=1389018&r1=1389017&r2=1389018&view=diff
==============================================================================
--- buildr/trunk/.rvmrc (original)
+++ buildr/trunk/.rvmrc Sun Sep 23 11:19:41 2012
@@ -21,6 +21,11 @@ if [ "X" == "X${detected_version}" ]; th
   rvm install ${BUILDR_RUBY_VERSION}
 fi
 
+# If running in the ci then remove the existing gemset
+if [ "X" != "X$JENKINS_HOME" ]; then
+  rvm ${BUILDR_RUBY_VERSION} gemset delete ${BUILDR_GEMSET}
+fi
+
 rvm ${BUILDR_RUBY_VERSION} gemset create ${BUILDR_GEMSET}
 
 export JRUBY_OPTS="-J-XX:MaxPermSize=128m -J-Xmx1024M"



Mime
View raw message