express42-cookbooks/postgresql_lwrp

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
services:
  - docker

language: ruby
cache: bundler
sudo: false
rvm:
- 2.6.3
bundler_args: "--without kitchen_vagrant kitchen_cloud aws"

before_install:
  - gem update --system
  - gem install bundler

script: "bundle exec kitchen test ${INSTANCE} --destroy=always"

env:
  global:
  - KITCHEN_YAML=.kitchen.docker.yml
  - secure: Ag8Zn5lQxHrj+Xi79FAKiyq1mJxos+eQe6rL3xrk0aDL10YuAbbYz32jOce1MlIvTsEl4uaVQXQXIJmHjbCqzf5m61FYqRMqVhQ8B+Sh3AYiGe1MYpl9KJSYleyJPqJBDBZ/xfLpDKX7PoUCgXpHm2ZION2YFBHdRx3tN/lejoU=
  - secure: FAO//JQqC+rY3ce19GjA/KWpNskY2nT+8i83WyueHZ20zIc6FMdkWOs+WcEcnfcXDG8GBCqiIG+wF1GajUWirWo+aEIjIguADJhZwuLqD4g6KDmRW9p1MB2b3XDvAbvzze7yy6uG9GcuhiKo+J3S33YugFD59UHGa7hCGeEukAo=
  matrix:
  - INSTANCE=pg-11-chef15-ubuntu-1604
  - INSTANCE=pg-11-chef15-debian-9
  - INSTANCE=pg-11-chef15-debian-8
  - INSTANCE=pg-10-chef15-ubuntu-1604
  - INSTANCE=pg-10-chef15-debian-9
  - INSTANCE=pg-10-chef15-debian-8
  - INSTANCE=pg-96-chef15-ubuntu-1604
  - INSTANCE=pg-96-chef15-ubuntu-1404
  - INSTANCE=pg-96-chef15-debian-9
  - INSTANCE=pg-96-chef15-debian-8
  - INSTANCE=pg-93-chef14-ubuntu-1404
  - INSTANCE=pg-93-chef14-ubuntu-1604
  - INSTANCE=pg-93-chef14-debian-8
  - INSTANCE=pg-93-chef14-debian-9
  - INSTANCE=pg-94-chef14-ubuntu-1604
  - INSTANCE=pg-94-chef14-debian-8
  - INSTANCE=pg-94-chef14-debian-9
  - INSTANCE=pg-95-chef14-ubuntu-1604
  - INSTANCE=pg-95-chef14-debian-8
  - INSTANCE=pg-95-chef14-debian-9
  - INSTANCE=pg-96-chef14-ubuntu-1404
  - INSTANCE=pg-96-chef14-ubuntu-1604
  - INSTANCE=pg-96-chef14-debian-8
  - INSTANCE=pg-96-chef14-debian-9
  - INSTANCE=pg-10-chef14-ubuntu-1604
  - INSTANCE=pg-10-chef14-debian-8
  - INSTANCE=pg-10-chef14-debian-9
  - INSTANCE=pg-11-chef14-ubuntu-1604
  - INSTANCE=pg-11-chef14-ubuntu-1604
  - INSTANCE=pg-11-chef14-debian-8
  - INSTANCE=pg-11-chef14-debian-9
  - INSTANCE=pg-96-chef13-ubuntu-1404
  - INSTANCE=pg-96-chef13-ubuntu-1604
  - INSTANCE=pg-96-chef13-debian-8
  - INSTANCE=pg-96-chef13-debian-9
  - INSTANCE=pg-10-chef13-ubuntu-1604
  - INSTANCE=pg-10-chef13-debian-8
  - INSTANCE=pg-10-chef13-debian-9
  - INSTANCE=pg-11-chef13-ubuntu-1404
  - INSTANCE=pg-11-chef13-ubuntu-1604
  - INSTANCE=pg-11-chef13-debian-8
  - INSTANCE=pg-11-chef13-debian-9

jobs:
  include:
    - stage: lint
      script:
        - bundle exec cookstyle --version
        - bundle exec cookstyle
        - bundle exec foodcritic --version
        - bundle exec foodcritic --contex --epic-fail any .

    - stage: deploy
      if: tag =~ ^[0-9]\.[0-9]\.[0-9]$
      script:
        - openssl aes-256-cbc -K $encrypted_b45d6f20bf91_key -iv $encrypted_b45d6f20bf91_iv
          -in .travis/secret_keys.tar.enc -out .travis/secret_keys.tar -d
        - tar xf .travis/secret_keys.tar -C .travis
        - bundle exec stove login --username express42 --key .travis/express42.pem
        - bundle exec stove --no-git

notifications:
  slack:
    secure: M7REbNB5Wf6eMBxQijnquWw4KlBbrw5zLM6fWqB1CjA3IF7DbYFUgvBTeUAxTFE9P2KEahYydPRkhzDtQ49PpE31g93yfy1yqQ/1rBHuzmZztR1hpwzYAhzGg4cak/47LQPaHx6Y9Pa83N8BPwpE4t9936wB3gXBlQERQdGdmoE=