travis-ci/travis-tasks:.travis.yml@54403a6
language: ruby
services:
- redis-server
cache: bundler
jobs:
include:
- stage: "testing time"
script: bundle exec rspec -f documentation --color --order rand spec
- stage: ":ship: it to quay.io"
ruby:
services:
cache:
bundler: false
before_script:
before_install:
install:
script: make ship
if: commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true
deploy:
provider: script
skip_cleanup: false
script: make ship
on:
branch: ga-ship_test
Build Config
{
"language": "ruby",
"os": [
"linux"
],
"dist": "xenial",
"services": [
"redis"
],
"cache": {
"bundler": true
},
"jobs": {
"include": [
{
"stage": "testing time",
"script": [
"bundle exec rspec -f documentation --color --order rand spec"
]
},
{
"stage": ":ship: it to quay.io",
"services": [],
"cache": {
"bundler": false
},
"before_script": [],
"before_install": [],
"install": [],
"script": [
"make ship"
],
"if": "commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true"
}
]
},
"deploy": [
{
"provider": "script",
"skip_cleanup": false,
"script": "make ship",
"on": {
"branch": [
"ga-ship_test"
]
}
}
]
}