AMD64
no language set
Git
travis-ci/travis-migrations:.travis.yml@66ca514
language: ruby

services:
  - postgresql

addons:
  - snaps:
    - name: docker
      channel: latest/beta
  - postgresql: "9.6"

cache:
  directories:
    - vendor/bundle

rvm: "2.5.3"

env:
  - RAILS_ENV=test
  - global:
    - PATH=/snap/bin:$PATH

before_script:
  - cp db/main/structure.sql db/main/structure-original.sql
  - cp config/database.yml.travis config/database.yml

after_success:
  - script/upload_structure.rb

jobs:
  include:
    - stage: "Testing time"
      script:
        - bundle exec rspec spec
        - script/validate_structure_file.rb db/main/structure-original.sql
    - stage: "Ship to Quay.io"
      before_script: echo skip
      after_success: echo skip
      script: make ship
      if: (branch = master and type = push ) OR commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true
Build Config
{
  "language": "ruby",
  "os": [
    "linux"
  ],
  "dist": "xenial",
  "services": [
    "postgresql"
  ],
  "addons": {
    "snaps": [
      {
        "name": "docker",
        "channel": "latest/beta"
      }
    ]
  },
  "cache": {
    "directories": [
      "vendor/bundle"
    ]
  },
  "rvm": [
    "2.5.3"
  ],
  "env": "RAILS_ENV=test",
  "before_script": [
    "cp db/main/structure.sql db/main/structure-original.sql",
    "cp config/database.yml.travis config/database.yml"
  ],
  "after_success": [
    "script/upload_structure.rb"
  ],
  "jobs": {
    "include": [
      {
        "stage": "Testing time",
        "script": [
          "bundle exec rspec spec",
          "script/validate_structure_file.rb db/main/structure-original.sql"
        ]
      },
      {
        "stage": "Ship to Quay.io",
        "before_script": [
          "echo skip"
        ],
        "after_success": [
          "echo skip"
        ],
        "script": [
          "make ship"
        ],
        "if": "(branch = master and type = push ) OR commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true"
      }
    ]
  }
}