AMD64
Ruby: 2.5.3
Git
RAILS_ENV=test
travis-ci/travis-migrations:.travis.yml@8e6e704
language: ruby
sudo: false
services:
- postgresql
addons:
postgresql: "9.6"
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: type = cron OR commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true
Build Config
{
"language": "ruby",
"os": [
"linux"
],
"sudo": false,
"services": [
"postgresql"
],
"addons": {
"postgresql": "9.6"
},
"cache": {
"directories": [
"vendor/bundle"
]
},
"rvm": [
"2.5.3"
],
"env": {
"jobs": [
{
"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": "type = cron OR commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true"
}
]
}
}