jruby-9k.sh 713 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. fw_depends rvm java
  3. fw_installed jruby-9k && return 0
  4. # rvm stable [typically] only provides one version of jruby-9.0
  5. # update this when it changes
  6. JRUBY_VERSION="9.0.0.0.pre1"
  7. # We assume single-user installation as
  8. # done in our rvm.sh script and
  9. # in Travis-CI
  10. if [ "$TRAVIS" = "true" ]
  11. then
  12. rvmsudo rvm install jruby-$JRUBY_VERSION
  13. # Bundler is SOMETIMES missing... not sure why.
  14. rvmsudo rvm jruby-$JRUBY_VERSION do gem install bundler
  15. else
  16. rvm install jruby-$JRUBY_VERSION
  17. # Bundler is SOMETIMES missing... not sure why.
  18. rvm jruby-$JRUBY_VERSION do gem install bundler
  19. fi
  20. echo "export JRUBY_VERSION=${JRUBY_VERSION}" > $IROOT/jruby-9k.installed
  21. source $IROOT/jruby-9k.installed