summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskeshari12 <skeshari@msystechnologies.com>2022-04-12 18:04:45 +0530
committerskeshari12 <skeshari@msystechnologies.com>2022-04-12 18:04:45 +0530
commit2988001d6db3078119346964bb1ccae895520bf4 (patch)
tree9ffa9c2ae5d8a0f62a052a07efa3dcc0dcbba89b
parentf3af79db6d326b9d905865f220e5a36a1b4c3b05 (diff)
downloadffi-yajl-2988001d6db3078119346964bb1ccae895520bf4.tar.gz
add again spec for jruby
Signed-off-by: skeshari12 <skeshari@msystechnologies.com>
-rw-r--r--.expeditor/buildkite/run_windows_tests.ps16
-rw-r--r--Rakefile7
2 files changed, 12 insertions, 1 deletions
diff --git a/.expeditor/buildkite/run_windows_tests.ps1 b/.expeditor/buildkite/run_windows_tests.ps1
index 23f02c3..3e2277b 100644
--- a/.expeditor/buildkite/run_windows_tests.ps1
+++ b/.expeditor/buildkite/run_windows_tests.ps1
@@ -4,17 +4,21 @@ $ErrorActionPreference = "Stop"
# This will run ruby test on windows platform
echo "--- Install make "
-choco install make --source=cygwin
+choco install make --source=cygwin
+If ($lastexitcode -ne 0) { Exit $lastexitcode }
Write-Output "--- Bundle install"
ruby --version
bundler --version
gem update --system
+If ($lastexitcode -ne 0) { Exit $lastexitcode }
bundle install --without development_extras --jobs 3 --retry 3 --path vendor/bundle
+If ($lastexitcode -ne 0) { Exit $lastexitcode }
gem install yajl-ruby json psych
If ($lastexitcode -ne 0) { Exit $lastexitcode }
Write-Output "--- Bundle Execute"
bundle exec rake compile
+If ($lastexitcode -ne 0) { Exit $lastexitcode }
bundle exec rake spec
If ($lastexitcode -ne 0) { Exit $lastexitcode } \ No newline at end of file
diff --git a/Rakefile b/Rakefile
index 1444882..ce105db 100644
--- a/Rakefile
+++ b/Rakefile
@@ -87,6 +87,13 @@ namespace :spec do
ENV["FORCE_FFI_YAJL"] = "ffi"
t.pattern = FileList["spec/**/*_spec.rb"]
end
+ if !defined?(RUBY_ENGINE) || RUBY_ENGINE !~ /jruby/
+ desc "Run all specs again c extension"
+ RSpec::Core::RakeTask.new(:ext) do |t|
+ ENV["FORCE_FFI_YAJL"] = "ext"
+ t.pattern = FileList["spec/**/*_spec.rb"]
+ end
+ end
end
namespace :integration do