Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
testing more specific versions of rubies, so we can test jruby in bot…
…h 1.8 and 1.9 modes.
  • Loading branch information
flavorjones committed Jun 23, 2012
1 parent 9fa99a8 commit bd65c80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -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]
Expand Down
15 changes: 4 additions & 11 deletions test_all
Expand Up @@ -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

Expand All @@ -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
}
Expand All @@ -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
}

Expand All @@ -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

Expand Down

0 comments on commit bd65c80

Please sign in to comment.