Dockerイメージ mdillon/postgis をserviceとして使う。
box: ruby
services:
# このnameをpostgresにしておかないとコンテナ間のリンクができない
- name: postgres
id: mdillon/postgis
env:
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_USER: $POSTGRES_USER
build:
steps:
- bundle-install
- rails-database-yml:
service: postgresql-docker
- script:
name: rspec
code: bundle exec rspec