Skip to content
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

fix: tests #132

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
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
Loading