diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-25 15:25:39 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-25 15:25:39 +0900 |
commit | 23aabc288dc380441254edc9e9df2f3bc6bdda6e (patch) | |
tree | 30a9d3381e1fe7d7fe3d5d446d6ca643a5cdce1c /Rakefile | |
parent | fb6eefed8ecfda0bac0640e07f0daa85eed259d3 (diff) | |
parent | 362a7c3eae107773fe7413549de167d532e0e7ae (diff) | |
download | json-23aabc288dc380441254edc9e9df2f3bc6bdda6e.tar.gz |
Merge pull request #371 from kares/jruby-baseline
baseline changes to help (JRuby) development
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -142,7 +142,8 @@ task :check_env do end desc "Testing library (pure ruby)" -task :test_pure => [ :clean, :check_env, :do_test_pure ] +task :test_pure => [ :set_env_pure, :check_env, :do_test_pure ] +task(:set_env_pure) { ENV['JSON'] = 'pure' } UndocumentedTestTask.new do |t| t.name = 'do_test_pure' @@ -153,10 +154,7 @@ UndocumentedTestTask.new do |t| end desc "Testing library (pure ruby and extension)" -task :test do - sh "env JSON=pure #{BUNDLE} exec rake test_pure" or exit 1 - sh "env JSON=ext #{BUNDLE} exec rake test_ext" or exit 1 -end +task :test => [ :test_pure, :test_ext ] namespace :gems do desc 'Install all development gems' @@ -223,7 +221,8 @@ if defined?(RUBY_ENGINE) and RUBY_ENGINE == 'jruby' end desc "Testing library (jruby)" - task :test_ext => [ :check_env, :create_jar, :do_test_ext ] + task :test_ext => [ :set_env_ext, :create_jar, :check_env, :do_test_ext ] + task(:set_env_ext) { ENV['JSON'] = 'ext' } UndocumentedTestTask.new do |t| t.name = 'do_test_ext' |