Skip to content

Commit

Permalink
Breaking change: Bumped versions, added compatibility with bonsai
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel Alonso committed Feb 11, 2020
1 parent 8731c36 commit 5b10156
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 11 deletions.
28 changes: 28 additions & 0 deletions .bonsai.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
description: "#{repo}"
builds:
- platform: "alpine"
arch: "amd64"
asset_filename: "#{repo}_#{version}_alpine_linux_amd64.tar.gz"
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
filter:
- "entity.system.os == 'linux'"
- "entity.system.arch == 'amd64'"
- "entity.system.platform == 'alpine'"
- "entity.system.platform_version.split('.')[0] == '3'"
- platform: "centos"
arch: "amd64"
asset_filename: "#{repo}_#{version}_centos_linux_amd64.tar.gz"
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
filter:
- "entity.system.os == 'linux'"
- "entity.system.arch == 'amd64'"
- "entity.system.platform_family == 'rhel'"
- platform: "debian"
arch: "amd64"
asset_filename: "#{repo}_#{version}_debian_linux_amd64.tar.gz"
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
filter:
- "entity.system.os == 'linux'"
- "entity.system.arch == 'amd64'"
- "entity.system.platform_family == 'debian'"
26 changes: 18 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,28 @@ install:
- bundle install

rvm:
- 2.3.0
- 2.4.1

script:
- bundle exec rake default
- gem build sensu-plugins-kafka.gemspec
- gem install sensu-plugins-kafka-*.gem

before_deploy:
- git clone https://github.com/sensu/sensu-go-bonsai-asset.git --branch feature/ruby-plugin-assets bonsai

deploy:
provider: rubygems
api_key:
secure: "ogxmrFkjbJysgcuMHF/nei0kjyOmjjTEFZy51KOCTTBNPFnbZfVnPaTZCokZXDAYTJMkkYV0e73JnGtdCDOu4jdj4S+cEOCW4PLs5A1/mlnx4ySjLt56JRtdCKGkIAbq4FRZe2GSIYIT3cAQr0Wmnc6XH2wxZZSZHiXwIwgUbuJ4tS32XnbszSOEInWWrryU6nHzi/nlHxAEXNr6gyIvYkv4hBXsEmKKJY757l1lpau3TXASReCkYssXgUYZw//eTSXw24dmSqXlHdImp5Q+2aKqBY8xyqv82Ge0YYfd+aeSRxfeK8CFcHSxGrlfYHAgyc2h8boGmT2nE2qAF7qelc1InZaGa6+8/ugRuyspv9pN3b3IqOZjR8mWI8/pWPeCUFbjXHO1yQU+3U3KexubAmzNXMIrl8KzFDmdVDnCS7aMzDqkfWnCBsOO/A6DHEETdPmd+QSjTbLeui6Q7knp99S55zdiI6ddgLFemH8qS0jfP3LI7XX/AWjDLDmqlnvmsUk+QASj0WvNCkHbLueFPzUlv0VPd4dpT5CaaAEIyZfewjLOTGENOjMpLl1gyJRWtPp+x7TcZoPy9DHooJT7kNo23VkDjGBKgS/Yf/pRKU4nszHntearf9zFc+2jnVRl3D95h12Ks3Uyw6vcTYfgm8odDAE3l4GA9jLqWeo6NPE="
gem: sensu-plugins-kafka
on:
tags: true
repo: obazoud/sensu-plugins-kafka
# - provider: rubygems
# api_key:
# secure: "ogxmrFkjbJysgcuMHF/nei0kjyOmjjTEFZy51KOCTTBNPFnbZfVnPaTZCokZXDAYTJMkkYV0e73JnGtdCDOu4jdj4S+cEOCW4PLs5A1/mlnx4ySjLt56JRtdCKGkIAbq4FRZe2GSIYIT3cAQr0Wmnc6XH2wxZZSZHiXwIwgUbuJ4tS32XnbszSOEInWWrryU6nHzi/nlHxAEXNr6gyIvYkv4hBXsEmKKJY757l1lpau3TXASReCkYssXgUYZw//eTSXw24dmSqXlHdImp5Q+2aKqBY8xyqv82Ge0YYfd+aeSRxfeK8CFcHSxGrlfYHAgyc2h8boGmT2nE2qAF7qelc1InZaGa6+8/ugRuyspv9pN3b3IqOZjR8mWI8/pWPeCUFbjXHO1yQU+3U3KexubAmzNXMIrl8KzFDmdVDnCS7aMzDqkfWnCBsOO/A6DHEETdPmd+QSjTbLeui6Q7knp99S55zdiI6ddgLFemH8qS0jfP3LI7XX/AWjDLDmqlnvmsUk+QASj0WvNCkHbLueFPzUlv0VPd4dpT5CaaAEIyZfewjLOTGENOjMpLl1gyJRWtPp+x7TcZoPy9DHooJT7kNo23VkDjGBKgS/Yf/pRKU4nszHntearf9zFc+2jnVRl3D95h12Ks3Uyw6vcTYfgm8odDAE3l4GA9jLqWeo6NPE="
# gem: sensu-plugins-kafka
# on:
# tags: true
# repo: Adirael/sensu-plugins-kafka
- provider: script
script: bonsai/ruby-runtime/travis-build-ruby-plugin-assets.sh sensu-plugins-kafka
skip_cleanup: true
on:
tags: true
all_branches: true
rvm: 2.4.1
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
## [Unreleased]

### Breaking Changes
- Bump `sensu-plugin` dependency from `~> 2.7` to `~> 4.0` you can read the changelog entries for [4.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#400---2018-02-17), [3.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#300---2018-12-04), and [2.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#v200---2017-03-29)

### Added
- Travis build automation to generate Sensu Asset tarballs that can be used n conjunction with Sensu provided ruby runtime assets and the Bonsai Asset Index
- Require latest sensu-plugin for [Sensu Go support](https://github.com/sensu-plugins/sensu-plugin#sensu-go-enablement)

### Fixed
### Changed

Expand Down
6 changes: 3 additions & 3 deletions sensu-plugins-kafka.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Gem::Specification.new do |s|
s.email = 'olivier.bazoud@gmail.com'
s.executables = Dir.glob('bin/**/*').map { |file| File.basename(file) }
s.files = Dir.glob('{bin,lib}/**/*') + %w(LICENSE README.md CHANGELOG.md)
s.homepage = 'https://github.com/obazoud/sensu-plugins-kafka'
s.homepage = 'https://github.com/Adirael/sensu-plugins-kafka'
s.license = 'MIT'
s.metadata = { 'maintainer' => 'sensu-plugin',
'development_status' => 'active',
Expand All @@ -35,13 +35,13 @@ Gem::Specification.new do |s|
s.version = SensuPluginsKafka::Version::VER_STRING

s.add_runtime_dependency 'poseidon', '0.0.5'
s.add_runtime_dependency 'sensu-plugin', '~> 1.3'
s.add_runtime_dependency 'sensu-plugin', '~> 4.0'
s.add_runtime_dependency 'zookeeper', '~> 1.4.11'

s.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
s.add_development_dependency 'rubocop', '0.49.0'
s.add_development_dependency 'rspec', '~> 3.1'
s.add_development_dependency 'bundler', '~> 1.7'
s.add_development_dependency 'bundler', '~> 2.1'
s.add_development_dependency 'rake', '~> 10.0'
s.add_development_dependency 'github-markup', '~> 1.3'
s.add_development_dependency 'redcarpet', '~> 3.2'
Expand Down

0 comments on commit 5b10156

Please sign in to comment.