travis-ci/travis-tasks:.travis.yml@d004147
language: ruby
group: edge
rvm:
- 3.2.2
services:
- redis-server
cache: bundler
env:
global:
- PATH=/snap/bin:$PATH
jobs:
include:
- stage: "testing time"
before_install: sudo apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev && bundle config build.nokogiri --use-system-libraries
script: bundle exec rspec -f documentation --color --order rand spec
- stage: ":ship: it to quay.io"
dist: focal
ruby:
before_install:
- gem install bundler:2.4.13
- gem install rubygems-update -v 3.4.22
before_script:
install:
services:
cache:
bundler: false
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",
"group": "edge",
"rvm": [
"3.2.2"
],
"services": [
"redis"
],
"cache": {
"bundler": true
},
"env": {
"global": [
{
"PATH": "/snap/bin:$PATH"
}
]
},
"jobs": {
"include": [
{
"stage": "testing time",
"before_install": [
"sudo apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev && bundle config build.nokogiri --use-system-libraries"
],
"script": [
"bundle exec rspec -f documentation --color --order rand spec"
]
},
{
"stage": ":ship: it to quay.io",
"dist": "focal",
"before_install": [
"gem install bundler:2.4.13",
"gem install rubygems-update -v 3.4.22"
],
"before_script": [],
"install": [],
"services": [],
"cache": {
"bundler": false
},
"script": [
"make ship"
],
"if": "(branch = master and type = push ) OR commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true"
}
]
}
}