Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar committed Nov 14, 2023
1 parent d0fb0d5 commit 5b6e186
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ commands:
type: string
path:
type: string
bundle-version:
type: string
default: ''
steps:
- restore_cache:
name: Restoring Gem Cache
Expand All @@ -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:
Expand Down Expand Up @@ -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 >>
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion apis/influxdb-client-apis.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion influxdb-client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 5b6e186

Please sign in to comment.