- Added RVM-based Ruby test driver that tests MRI and JRuby. - Fixed JRuby compilation (at least in my current setup): force source version to 1.6 (Java 6) to allow generics and annotations. - Modify the skipped JRuby JSON tests so that the exit code is 0 (skip() results in a failing exit code from `rake test`). An upcoming PR should fix JSON under JRuby in general soon.pull/383/head
parent
23bb79d4a3
commit
eb37551ae4
4 changed files with 33 additions and 3 deletions
@ -0,0 +1,19 @@ |
||||
#!/bin/bash |
||||
|
||||
# Exit on any error. |
||||
set -e |
||||
|
||||
test_version() { |
||||
version=$1 |
||||
bash --login -c \ |
||||
"rvm install $version && rvm use $version && \ |
||||
which ruby && \ |
||||
gem install bundler && bundle && \ |
||||
rake test" |
||||
} |
||||
|
||||
test_version ruby-1.9 |
||||
test_version ruby-2.0 |
||||
test_version ruby-2.1 |
||||
test_version ruby-2.2 |
||||
test_version jruby |
Loading…
Reference in new issue