sensu-plugins/sensu-plugins-snmp

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
sudo: required
language: ruby
services:
- docker
cache:
- bundler
before_install:
  - sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
  - gem install bundler -v 1.15
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:
  - gem build sensu-plugins-snmp.gemspec
  - gem install sensu-plugins-snmp-*.gem
  - bundle exec rake
#  - bundle exec rake kitchen:ruby-`echo $TRAVIS_RUBY_VERSION | sed -e "s/\.//g"`-debian-8
before_deploy:
- bash -c "[ ! -d bonsai/ ] && git clone https://github.com/sensu/sensu-go-bonsai-asset.git bonsai || echo 'bonsai/ exists, skipping git clone'"
deploy:
- provider: rubygems
  api_key:
    secure: HS+M7BPPjnJ7nEfyXJOkrWGDys3DsUVg7Eo6lkPeh536uiEe3WCEA8/cISQ0eS8SFxCQBgSdjQCI9r0mocOAinibiNNpvH1GTBkLAeDbpz0jhpZn1tKkHfiWMvm+TE8NeogxmAZPUpnut45Lt70XKFttU+LXwb/xYHb8PwcnpMM=
  gem: sensu-plugins-snmp
  on:
    tags: true
    all_branches: true
    rvm: 2.3.0
    rvm: 2.4.1
    repo: sensu-plugins/sensu-plugins-snmp
- provider: script
  script: bonsai/ruby-runtime/travis-build-ruby-plugin-assets.sh sensu-plugins-snmp
  skip_cleanup: true
  on:
    tags: true
    all_branches: true
    rvm: 2.4.1
env:
  global:
    - KITCHEN_LOCAL_YAML=.kitchen.travis.yml