-
Notifications
You must be signed in to change notification settings - Fork 50
/
.travis.yml
43 lines (42 loc) · 1.11 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
language: ruby
services:
- docker
cache:
- bundler
before_install:
- gem install bundler
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-memory-checks.gemspec
- gem install sensu-plugins-memory-checks-*.gem
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: TgMN+aURCSc0ilnRDJpQ3ySfEriGppMn5onctJJWN6ghReaKe8faXjcB/RWljfIBQgxkijy2svMgN+y6cRyii6dTfnFnZY4yUO+u6+HU5QNzb5uVbn2MKU5KfpsQFYwToPSKbQ1YcvA39U67sS4aRVf0TsrPoQfXZxOeLytNtz8=
gem: sensu-plugins-memory-checks
on:
tags: true
all_branches: true
rvm: 2.3.0
rvm: 2.4.1
repo: sensu-plugins/sensu-plugins-memory-checks
- provider: script
script: bonsai/ruby-runtime/travis-build-ruby-plugin-assets.sh sensu-plugins-memory-checks
skip_cleanup: true
on:
tags: true
all_branches: true
rvm: 2.4.1