Skip to content

Instantly share code, notes, and snippets.

@flash-gordon
Created July 23, 2016 21:18
Show Gist options
  • Save flash-gordon/ff06f6a030febeaa75770541aae6867d to your computer and use it in GitHub Desktop.
Save flash-gordon/ff06f6a030febeaa75770541aae6867d to your computer and use it in GitHub Desktop.
machine:
java:
version: openjdk7
environment:
RAILS_ENV: test
JRUBY_OPTS: -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -X-C -Xcompile.invokedynamic=false --1.9 -J-Xmx2g
dependencies:
cache_directories:
- '~/.rvm/rubies'
- 'vendor'
override:
- >
case $CIRCLE_NODE_INDEX in
0)
rvm-exec 2.1.0 bash -c "bundle check --path=vendor/bundle_2.1 || bundle install --path=vendor/bundle_2.1"
;;
1)
rvm-exec 2.2.0-preview1 bash -c "bundle check --path=vendor/bundle_2.2 || bundle install --path=vendor/bundle_2.2"
;;
2)
rvm-exec ruby-head gem install bundler
rvm-exec ruby-head bash -c "bundle check --path=vendor/bundle_head || bundle install --path=vendor/bundle_head"
;;
3)
rvm-exec jruby gem install bundler
rvm-exec jruby bash -c "bundle check --path=vendor/bundle_jruby --gemfile Gemfile.java || bundle install --path=vendor/bundle_jruby --gemfile Gemfile.java"
;;
esac
test:
override:
- case $CIRCLE_NODE_INDEX in 0) rvm-exec 2.1.0 bundle exec rake ;; 1) rvm-exec 2.2.0-preview1 bundle exec rake ;; 2) rvm-exec ruby-head bundle exec rake ;; 3) BUNDLE_GEMFILE=Gemfile.java rvm-exec jruby bundle exec rake ;; esac:
parallel: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment