Permalink
Browse files

testing more specific versions of rubies, so we can test jruby in bot…

…h 1.8 and 1.9 modes.
  • Loading branch information...
1 parent 9fa99a8 commit bd65c806889ed637abc71884ecf4a4a927d6a5b7 @flavorjones flavorjones committed Jun 23, 2012
Showing with 5 additions and 12 deletions.
  1. +1 −1 Gemfile
  2. +4 −11 test_all
View
@@ -11,9 +11,9 @@ gem "hoe-gemspec", ">=1.0", :group => [:development, :test]
gem "hoe-git", ">=1.4", :group => [:development, :test]
gem "mini_portile", ">=0.2.2", :group => [:development, :test]
gem "minitest", "~>2.2.2", :group => [:development, :test]
-gem "racc", ">=1.4.6", :group => [:development, :test]
gem "rake", ">=0.9", :group => [:development, :test]
gem "rake-compiler", "=0.8.0", :group => [:development, :test]
+gem "racc", ">=1.4.6", :group => [:development, :test]
gem "rexical", ">=1.0.5", :group => [:development, :test]
gem "rdoc", "~>3.10", :group => [:development, :test]
gem "hoe", "~>2.16", :group => [:development, :test]
View
@@ -6,7 +6,7 @@
# requires `rvm` to be installed. sorry about that, multiruby dudes.
#
-RUBIES="ruby-1.9.3 jruby-1.6.5 ree-1.8.7 ruby-1.9.2 ruby-1.8.7"
+RUBIES="ruby-1.9.3-p0 jruby-1.6.5.1 jruby-1.6.7.2 ree-1.8.7-2011.12 ruby-1.9.2-p290 ruby-1.8.7-p357"
TEST_LOG=test.log
VALGRIND_LOG=valgrind.log
@@ -30,7 +30,7 @@ function rvm_use {
function generate_parser_and_tokenizer {
old_ruby=$current_ruby
- rvm_use ruby-1.8.7
+ rvm_use ruby-1.8.7-p357
bundle exec rake generate 2>&1 > /dev/null
rvm_use $old_ruby
}
@@ -41,7 +41,7 @@ function clean {
function compile {
echo "** compiling ..."
- generate_parser_and_tokenizer
+ # generate_parser_and_tokenizer
bundle exec rake compile 2>&1 > /dev/null
}
@@ -60,14 +60,7 @@ for ruby in $RUBIES ; do
clean
compile
echo "** running tests ..."
- if [[ $ruby =~ "jruby" ]] ; then
- # I get:
- # /usr/lib/jvm/java-7-oracle/bin/java: symbol lookup error: /home/mike/.rvm/gems/jruby-1.6.5@nokogiri/gems/racc-1.4.7/lib/racc/cparse.so: undefined symbol: rb_catch
- # if I use 'bundle exec' with jruby. Anybody?
- rake test 2>&1 | tee -a $TEST_LOG
- else
- bundle exec rake test 2>&1 | tee -a $TEST_LOG
- fi
+ bundle exec rake test 2>&1 | tee -a $TEST_LOG
clean
done

0 comments on commit bd65c80

Please sign in to comment.