Skip to content

Commit

Permalink
Merge pull request #310 from Shopify/ruby-2.7
Browse files Browse the repository at this point in the history
Update CI to test Ruby 2.7
  • Loading branch information
casperisfine committed Jun 29, 2020
2 parents a7818b7 + 2cc49bb commit 68faeab
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Expand Up @@ -6,8 +6,10 @@ os:
- osx

rvm:
- ruby-2.4
- ruby-2.5
- '2.4'
- '2.5'
- '2.6'
- '2.7'
- ruby-head

matrix:
Expand Down
6 changes: 5 additions & 1 deletion Rakefile
Expand Up @@ -10,4 +10,8 @@ Rake::ExtensionTask.new do |ext|
ext.gem_spec = gemspec
end

task(default: :compile)
task :test do
sh 'bin/testunit'
end

task(default: %i(compile test))
3 changes: 1 addition & 2 deletions bin/ci
Expand Up @@ -5,6 +5,5 @@ set -euxo pipefail
if [[ "${MINIMAL_SUPPORT-0}" -eq 1 ]]; then
exec bin/test-minimal-support
else
rake
exec bin/testunit
exec rake
fi
2 changes: 1 addition & 1 deletion bootsnap.gemspec
Expand Up @@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
end

spec.add_development_dependency("bundler")
spec.add_development_dependency('rake', '~> 10.0')
spec.add_development_dependency('rake')
spec.add_development_dependency('rake-compiler', '~> 0')
spec.add_development_dependency("minitest", "~> 5.0")
spec.add_development_dependency("mocha", "~> 1.2")
Expand Down
2 changes: 1 addition & 1 deletion ext/bootsnap/bootsnap.c
Expand Up @@ -800,7 +800,7 @@ try_input_to_storage(VALUE arg)
}

static VALUE
rescue_input_to_storage(VALUE arg)
rescue_input_to_storage(VALUE arg, VALUE e)
{
return uncompilable;
}
Expand Down

0 comments on commit 68faeab

Please sign in to comment.