From 5b6e18690ecd239dfd55e5640687772d9e6177b0 Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Tue, 14 Nov 2023 11:16:10 +0100 Subject: [PATCH] fix: tests --- .circleci/config.yml | 11 ++++++++++- apis/influxdb-client-apis.gemspec | 2 +- influxdb-client.gemspec | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c978096..9b6a0d6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -41,6 +41,9 @@ commands: type: string path: type: string + bundle-version: + type: string + default: '' steps: - restore_cache: name: Restoring Gem Cache @@ -52,7 +55,7 @@ commands: name: Install dependencies command: | cd << parameters.path >> - gem install bundler + gem install bundler << parameters.bundle-version >> bundle config set path 'vendor/bundle' bundle install --jobs=4 --retry=3 - run: @@ -128,6 +131,9 @@ jobs: path: type: string default: . + bundle-version: + type: string + default: '' docker: - image: << parameters.ruby-image >> - image: &influx-image << parameters.influxdb-image >> @@ -139,6 +145,7 @@ jobs: ruby-image: << parameters.ruby-image >> gemspec-file: << parameters.gemspec-file >> path: << parameters.path >> + bundle-version: << parameters.bundle-version >> check-generate-sources: docker: @@ -253,11 +260,13 @@ workflows: - tests-ruby: name: client-r2.4 ruby-image: "cimg/ruby:2.4" + bundle-version: "-v 2.3.27" - tests-ruby: name: APIs-r2.4 ruby-image: "cimg/ruby:2.4" gemspec-file: influxdb-client-apis.gemspec path: ./apis + bundle-version: "-v 2.3.27" requires: - client-r2.4 - tests-ruby: diff --git a/apis/influxdb-client-apis.gemspec b/apis/influxdb-client-apis.gemspec index 4b28ced..d32faac 100644 --- a/apis/influxdb-client-apis.gemspec +++ b/apis/influxdb-client-apis.gemspec @@ -49,7 +49,7 @@ Gem::Specification.new do |spec| spec.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' spec.add_development_dependency 'bundler', '~> 2.0' - spec.add_development_dependency 'minitest', '~> 5.0' + spec.add_development_dependency 'minitest', '5.15.0' spec.add_development_dependency 'minitest-reporters', '~> 1.4' spec.add_development_dependency 'rake', '~> 13.0' spec.add_development_dependency 'rubocop', '~> 0.66.0' diff --git a/influxdb-client.gemspec b/influxdb-client.gemspec index 2422abf..1da6e11 100644 --- a/influxdb-client.gemspec +++ b/influxdb-client.gemspec @@ -45,7 +45,7 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 2.2.0' spec.add_development_dependency 'bundler', '~> 2.0' - spec.add_development_dependency 'minitest', '~> 5.0' + spec.add_development_dependency 'minitest', '5.15.0' spec.add_development_dependency 'minitest-reporters', '~> 1.4' spec.add_development_dependency 'rake', '~> 13.0' spec.add_development_dependency 'rubocop', '~> 0.66.0'