Skip to content

Commit 3c41af1

Browse files
author
Jef Spaleta
committed
add new travis auto,ation
1 parent 262f666 commit 3c41af1

4 files changed

Lines changed: 26 additions & 7 deletions

File tree

.travis.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
language: ruby
2+
services:
3+
- docker
24
cache:
35
- bundler
46
install:
57
- bundle install
68
rvm:
7-
- 2.1
8-
- 2.2
99
- 2.3.0
1010
- 2.4.1
1111
notifications:
@@ -18,16 +18,23 @@ script:
1818
- bundle exec rake default
1919
- gem build sensu-plugins-process-checks.gemspec
2020
- gem install sensu-plugins-process-checks-*.gem
21+
- bash -c "[ ! -d bonsai/ ] && git clone https://github.com/sensu/sensu-go-bonsai-asset.git bonsai || echo 'bonsai/ exists, skipping git clone'"
2122
deploy:
22-
provider: rubygems
23+
- provider: rubygems
2324
api_key:
2425
secure: K4zuPdQMW/jyCOO3+daQMp4dAlzdEi14qPx9Y09Zas5jFqCfbdIbK9fH3dzyuxoOOVrCjC9zW5EnNb8QveGcmRbtNx1ss4f626CLln2b+OE8jdmcQVHjVP1TmVI4Z2AvZnqSdKqPKQIiDPBHvO1BeIS4wgo2rXajuc7yUKOZuuA=
2526
gem: sensu-plugins-process-checks
2627
on:
2728
tags: true
2829
all_branches: true
29-
rvm: 2.1
30-
rvm: 2.2
3130
rvm: 2.3.0
3231
rvm: 2.4.1
3332
repo: sensu-plugins/sensu-plugins-process-checks
33+
- provider: script
34+
script: bonsai/ruby-runtime/travis-build-ruby-plugin-assets.sh sensu-plugins-process-checks
35+
skip_cleanup: true
36+
on:
37+
tags: true
38+
all_branches: true
39+
rvm: 2.4.1
40+

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
55

66

77
## [Unreleased]
8+
### Breaking Changes
9+
- Update minimum required ruby version to 2.3. Drop unsupported ruby versions.
10+
- Bump `sensu-plugin` dependency from `~> 1.2` 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)
11+
12+
### Added
13+
- 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
14+
- Require latest sensu-plugin for [Sensu Go support](https://github.com/sensu-plugins/sensu-plugin#sensu-go-enablement)
15+
816

917
## [3.2.0] - 2018-05-02
1018
### Fixed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-process-checks/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-process-checks)
66
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-process-checks/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-process-checks)
77
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-process-checks.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-process-checks)
8+
[![Sensu Bonsai Asset](https://img.shields.io/badge/Bonsai-Download%20Me-brightgreen.svg?colorB=89C967&logo=sensu)](https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-process-checks)
9+
10+
## Sensu Asset
11+
The Sensu assets packaged from this repository are built against the Sensu ruby runtime environment. When using these assets as part of a Sensu Go resource (check, mutator or handler), make sure you include the corresponding Sensu ruby runtime asset in the list of assets needed by the resource. The current ruby-runtime assets can be found [here](https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime) in the [Bonsai Asset Index](bonsai.sensu.io).
812

913
## Functionality
1014

sensu-plugins-process-checks.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ Gem::Specification.new do |s| # rubocop: disable Metrics/BlockLength
2525
s.platform = Gem::Platform::RUBY
2626
s.post_install_message = 'You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu'
2727
s.require_paths = ['lib']
28-
s.required_ruby_version = '>= 2.1.0'
28+
s.required_ruby_version = '>= 2.3.0'
2929

3030
s.summary = 'Sensu plugins for checking running processes'
3131
s.test_files = s.files.grep(%r{^(test|spec|features)/})
3232
s.version = SensuPluginsProcessChecks::Version::VER_STRING
3333

3434
s.add_runtime_dependency 'english', '0.6.3'
35-
s.add_runtime_dependency 'sensu-plugin', '~> 1.2'
35+
s.add_runtime_dependency 'sensu-plugin', '~> 4.0'
3636
s.add_runtime_dependency 'sys-proctable', '~> 0.9.8'
3737

3838
s.add_development_dependency 'bundler', '~> 1.7'

0 commit comments

Comments
 (0)