forked from sensu-plugins/sensu-plugins-postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (36 loc) · 1.02 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
sudo: true
service: docker
language: ruby
cache:
- bundler
before_install:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- gem install bundler -v 1.15.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
before_script:
- docker run --name sensu-postgres-10 -e POSTGRES_PASSWORD='<REDACTED>' -d postgres
script:
- bundle exec rake quick
- bundle exec rake kitchen:ruby-`echo $TRAVIS_RUBY_VERSION | sed -e "s/\.//g"`-debian-8
- gem build sensu-plugins-postgres.gemspec
- gem install sensu-plugins-postgres-*.gem
deploy:
provider: rubygems
api_key:
secure: L3ot3q90Sz+1dhi1Lxg4rvxZ0AEUCq2dL55Gzau48wou72T3GYSDBoqVGnZPmQcS9miNy4J7NZMxUgfoycnceqUkkue8+ss4c42NtrYs+SLU+rnmB/cwLTBQJ1ERRNXqgOYTwWt8EuIy6Dong1oCu8voFSj7NH4sXxTTO7RFho8=
gem: sensu-plugins-postgres
on:
tags: true
all_branches: true
rvm: 2.4.1
repo: sensu-plugins/sensu-plugins-postgres