travis-ci/travis-api:.travis.yml@7e81ee6
language: ruby
group: edge
import:
- travis-ci/build-configs:db-setup.yml@bionic
rvm: 2.6.5
script: "bundle exec rake knapsack:rspec"
env:
global:
- PATH=/snap/bin:$PATH
- RUBY_GC_MALLOC_LIMIT=90000000
- RUBY_GC_HEAP_FREE_SLOTS=200000
- CI_NODE_TOTAL=3
matrix:
- CI_NODE_INDEX=0
- CI_NODE_INDEX=1
- CI_NODE_INDEX=2
cache: bundler
services:
- redis-server
before_install:
- 'gem update --system'
jobs:
include:
- stage: ":ship: it to Quay.io"
install: echo skip
before_script: echo skip
script: make ship
if: commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true or branch = master
travis-ci/build-configs:db-setup.yml@bionic
dist: bionic
addons:
postgresql: 11
services:
- postgresql
before_script:
- psql --version
- psql -c 'CREATE DATABASE travis_test;' -U postgres
- curl -fs https://raw.githubusercontent.com/travis-ci/travis-migrations/master/db/main/structure.sql | psql travis_test
Build Config
{
"language": "ruby",
"os": [
"linux"
],
"dist": "bionic",
"group": "edge",
"rvm": [
"2.6.5"
],
"script": [
"bundle exec rake knapsack:rspec"
],
"env": {
"global": [
{
"PATH": "/snap/bin:$PATH"
},
{
"RUBY_GC_MALLOC_LIMIT": "90000000"
},
{
"RUBY_GC_HEAP_FREE_SLOTS": "200000"
},
{
"CI_NODE_TOTAL": "3"
}
],
"jobs": [
{
"CI_NODE_INDEX": "0"
},
{
"CI_NODE_INDEX": "1"
},
{
"CI_NODE_INDEX": "2"
}
]
},
"cache": {
"bundler": true
},
"services": [
"postgresql",
"redis"
],
"before_install": [
"gem update --system"
],
"jobs": {
"include": [
{
"stage": ":ship: it to Quay.io",
"install": [
"echo skip"
],
"before_script": [
"echo skip"
],
"script": [
"make ship"
],
"if": "commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true or branch = master"
}
]
},
"addons": {
"postgresql": "11"
},
"before_script": [
"psql --version",
"psql -c 'CREATE DATABASE travis_test;' -U postgres",
"curl -fs https://raw.githubusercontent.com/travis-ci/travis-migrations/master/db/main/structure.sql | psql travis_test"
]
}