Created
October 13, 2014 18:47
-
-
Save miry/b53488d54467ff541662 to your computer and use it in GitHub Desktop.
Circle CI to run multiple Ruby versions and Platforms
This file contains 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: | |
ruby: | |
version: jruby-1.7.16 | |
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: | |
bundler: | |
without: [production, staging, benchmarking] | |
cache_directories: | |
- "vendor/bundle_java" | |
- "vendor/bundle" | |
pre: | |
- rvm install 2.1.0 | |
- rvm install 2.2.0-preview1 | |
- rvm install jruby-1.7.16 | |
override: | |
- rvm-exec 2.1.0 bash -c "bundle check --path=vendor/bundle || bundle install --path=vendor/bundle" | |
- rvm-exec jruby-1.7.16 bash -c "bundle check --gemfile Gemfile.java --path=vendor/bundle_java || bundle install --gemfile Gemfile.java --path=vendor/bundle_java" | |
database: | |
override: | |
- cp config/database.yml.ci config/database.yml | |
- cp config/shards.yml.ci config/shards.yml | |
- rvm-exec 2.1.0 bash -c "bundle exec rake db:create db:structure:load --trace" | |
test: | |
pre: | |
- rvm-exec 2.1.0 bash -c "bundle exec rake assets:precompile --trace" | |
- rvm-exec 2.2.0-preview1 bash -c "bundle exec rake assets:precompile --trace" | |
- rvm-exec jruby-1.7.16 bash -c "bundle exec rake assets:precompile --trace" | |
override: | |
- rvm-exec 2.1.0 bash -c "bundle exec rspec --color --require spec_helper --format Fuubar spec" | |
- rvm-exec 2.2.0-preview1 bash -c "bundle exec rspec --color --require spec_helper --format Fuubar spec" | |
- rvm-exec jruby-1.7.16 bash -c "bundle exec --gemfile Gemfile.java rspec --color --require spec_helper --format Fuubar spec" | |
general: | |
artifacts: | |
- coverage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment