Skip to content

Commit

Permalink
Fix jruby builds
Browse files Browse the repository at this point in the history
  • Loading branch information
bronzdoc committed Oct 29, 2018
1 parent 1142c9e commit 00fe418
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .travis.yml
Expand Up @@ -14,8 +14,18 @@ matrix:
- rvm: 2.5.1
- rvm: ruby-head
gemfile: 'gemfiles/Gemfile.ruby-head'
- rvm: jruby-9.2.0.0
env: JRUBY_OPTS="--client -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-Xss2m -Xcompile.invokedynamic=false -J-Xmx1536m"

- language: generic
env:
- JRUBY_OPTS="--client -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-Xss2m -Xcompile.invokedynamic=false -J-Xmx1536m"
- JRUBY_VERSION="jruby-9.2.0.0"
before_install:
- ./ci/build/rvm_setup.sh
- rm -f ${HOME}/.rvm/gemsets/jruby/global.gems
- rvm use ${JRUBY_VERSION} --install --binary --fuzzy
- gem install bundler
install: bundle install --binstubs --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
script: bundle exec rake

bundler_args: "--binstubs --jobs=3 --retry=3"

Expand Down
8 changes: 8 additions & 0 deletions ci/build/rvm_setup.sh
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# Install rvm
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable

# for auto reload with msg.
echo "rvm_auto_reload_flag=1" >> ~/.rvmrc

0 comments on commit 00fe418

Please sign in to comment.