Created
June 13, 2017 14:32
-
-
Save marchi-martius/025bdb14c65853e435bbee3843604d61 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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