Permalink
Browse files

before install script only for JRuby

  • Loading branch information...
1 parent 9f2b4a5 commit c222d41da52df5e12d7d0042a4dea85b71e1d210 @nicksieger nicksieger committed Dec 26, 2013
Showing with 8 additions and 5 deletions.
  1. +8 −5 .travis.before_install.sh
View
@@ -1,10 +1,13 @@
#!/bin/bash
-env
-
set -x
-rvm use 1.9.3 --install --binary --fuzzy
+# Link to pre-built racc for JRuby
+[ "$TRAVIS_RUBY_VERSION" != "jruby" ] && exit 0
rvm 1.9.3 do gem install racc
-RACC=$(rvm 1.9.3 do gem open -c echo racc | tail -1)
-echo $RACC | sed 's,ruby-1.9.3[^/]*,jruby'
+GEMDIR=$(rvm 1.9.3 do gem env gemdir)
+JRUBY_GEMDIR=$(rvm jruby do gem env gemdir)
+
+rm -f $JRUBY_GEMDIR/{gems,specifications}/racc*
+ln -s $GEMDIR/gems/racc-* $JRUBY_GEMDIR/gems/
+ln -s $GEMDIR/specifications/racc-* $JRUBY_GEMDIR/specifications/

0 comments on commit c222d41

Please sign in to comment.