Skip to content

Commit

Permalink
ci: Add appraisals for OTLP exporter
Browse files Browse the repository at this point in the history
This is an attempt to ensure compatability with a range of google-protobuf gem versions
  • Loading branch information
arielvalentin authored Jul 27, 2023
1 parent 1159ec0 commit 407ba42
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@


# Appraisals
instrumentation/**/gemfiles

# Sqlite file for tests
instrumentation/active_record/db
**/*/gemfiles

# Vendored gems
**/vendor/**/*
Expand Down
12 changes: 12 additions & 0 deletions exporter/otlp/Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

# Copyright The OpenTelemetry Authors
#
# SPDX-License-Identifier: Apache-2.0

(19..23).each do |i|
version = "3.#{i}"
appraise "google-protobuf-#{version}" do
gem 'google-protobuf', "~> #{version}"
end
end
1 change: 1 addition & 0 deletions exporter/otlp/opentelemetry-exporter-otlp.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'opentelemetry-sdk', '~> 1.2'
spec.add_dependency 'opentelemetry-semantic_conventions'

spec.add_development_dependency 'appraisal', '~> 2.2.0'
spec.add_development_dependency 'bundler', '>= 1.17'
spec.add_development_dependency 'faraday', '~> 0.13'
spec.add_development_dependency 'minitest', '~> 5.0'
Expand Down

0 comments on commit 407ba42

Please sign in to comment.