.travis.yml
language: ruby
cache:
- bundler
before_install:
- gem install bundler -v 2.1
install:
- bundle install
rvm:
- 2.3.0
- 2.4.1
notifications:
email:
recipients:
- sensu-plugin@sensu-plugins.io
on_success: change
on_failure: always
script:
- bundle exec rake default
- gem build sensu-plugins-consul.gemspec
- gem install sensu-plugins-consul-*.gem
deploy:
provider: rubygems
api_key:
secure: AmpE9B6tIFXk2H3yMzZJQzVPVrkLpzIX0b1eUABw2iR2NMR90PncATLPeKYcYvpqtUCGW1YoWKkb1kzTwazi0XnVEV2TWydCMPhp/UU90lGxv8SsSYr+L2FUCrXu8mWs46xuXsvqGn1yKVaF0pZFbrMQ3yVLcD5dsqfNIX/ubw8=
gem: sensu-plugins-consul
on:
tags: true
all_branches: true
rvm: 2.4.1
repo: sensu-plugins/sensu-plugins-consul