AMD64
Ruby
Git
.travis.yml
language: ruby

rvm: 2.5.4

dist: trusty

cache:
  bundler: true
  directories:
  - ${HOME}/perl5
  - ${HOME}/.cache

services:
- redis
- rabbitmq

addons:
  postgresql: 9.6
  apt:
    packages:
    - postgresql-server-dev-9.6

before_install:
- script/install-sqitch
- script/install-partman
- eval "$(perl -I ~/perl5/lib/perl5/ '-Mlocal::lib')"
- gem update bundler

before_script:
- bundle exec rake setup

# temp env var to build a new docker image
env: BUILD_DOCKER=true

stages:
  - name: ":ship: it to Quay.io"
    if: type = cron OR branch =~ ^enterprise OR env(BUILD_DOCKER) IS present

jobs:
  include:
    - stage: "Testing time"
    - stage: ":ship: it to Quay.io"
      dist: trusty
      install: echo skip
      before_script: echo skip
      script: ./script/docker-build-and-push
Build Config
{
  "os": [
    "linux"
  ],
  "env": {
    "matrix": [
      "BUILD_DOCKER=true"
    ]
  },
  "rvm": [
    "2.5.4"
  ],
  "dist": "trusty",
  "cache": {
    "bundler": true,
    "directories": [
      "${HOME}/perl5",
      "${HOME}/.cache"
    ]
  },
  "addons": {
    "apt": {
      "packages": [
        "postgresql-server-dev-9.6"
      ]
    },
    "postgresql": "9.6"
  },
  "matrix": {
    "include": [
      {
        "stage": "Testing time"
      },
      {
        "dist": "trusty",
        "stage": ":ship: it to Quay.io",
        "script": [
          "./script/docker-build-and-push"
        ],
        "install": [
          "echo skip"
        ],
        "before_script": [
          "echo skip"
        ]
      }
    ]
  },
  "stages": [
    {
      "if": "type = cron OR branch =~ ^enterprise OR env(BUILD_DOCKER) IS present",
      "name": ":ship: it to Quay.io"
    }
  ],
  "language": "ruby",
  "services": [
    "redis-server",
    "rabbitmq"
  ],
  "before_script": [
    "bundle exec rake setup"
  ],
  "before_install": [
    "script/install-sqitch",
    "script/install-partman",
    "eval \"$(perl -I ~/perl5/lib/perl5/ '-Mlocal::lib')\"",
    "gem update bundler"
  ]
}