Skip to content

RUBY-2870 Test driver against bson master and 4-stable #2406

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 19, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,11 @@ axes:
display_name: min
variables:
BSON: min

- id: 4_stable
display_name: 4_stable
variables:
BSON: 4_stable

- id: storage-engine
display_name: Storage Engine
values:
Expand Down
2 changes: 2 additions & 0 deletions .evergreen/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ set_env_vars() {
export BUNDLE_GEMFILE=gemfiles/bson_min.gemfile
elif test "$BSON" = master; then
export BUNDLE_GEMFILE=gemfiles/bson_master.gemfile
elif test "$BSON" = 4_stable; then
export BUNDLE_GEMFILE=gemfiles/bson_4-stable.gemfile
elif test "$COMPRESSOR" = snappy; then
export BUNDLE_GEMFILE=gemfiles/snappy_compression.gemfile
elif test "$COMPRESSOR" = zstd; then
Expand Down
8 changes: 8 additions & 0 deletions gemfiles/bson_4-stable.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
source "https://rubygems.org"
gemspec path: '..'

gem 'bson', git: 'https://github.com/mongodb/bson-ruby', branch: '4-stable'

require_relative './standard'

standard_dependencies
2 changes: 1 addition & 1 deletion gemfiles/bson_master.gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source "https://rubygems.org"
gemspec path: '..'

gem 'bson', git: 'https://github.com/mongodb/bson-ruby', branch: '4-stable'
gem 'bson', git: 'https://github.com/mongodb/bson-ruby', branch: 'master'

require_relative './standard'

Expand Down
2 changes: 1 addition & 1 deletion mongo.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ Gem::Specification.new do |s|

s.required_ruby_version = ">= 2.5"

s.add_dependency 'bson', '>=4.13.0', '<5.0.0'
s.add_dependency 'bson', '>=4.13.0', '<6.0.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if %w(1 yes true).include?(ENV['MONGO_RUBY_DRIVER_BSON_MASTER'])

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

end