Skip to content

Instantly share code, notes, and snippets.

@frznk-tank
Created August 19, 2018 19:33
Show Gist options
  • Save frznk-tank/3c73306b4489af113cf880331b095ecd to your computer and use it in GitHub Desktop.
Save frznk-tank/3c73306b4489af113cf880331b095ecd to your computer and use it in GitHub Desktop.
Postgres 10 on Travis
env:
global:
- PGPORT=5433
language: ruby
rvm:
- 2.5.1
cache:
bundler: true
services:
- postgresql
addons:
postgresql: 10
apt:
packages:
- postgresql-10
- postgresql-client-10
before_script:
- cp config/database.yml.travis config/database.yml
script:
- bundle exec rake db:migrate
- bundle exec rspec
# config/database.yml.travis
test:
adapter: postgresql
database: travis
username: travis
password: travis
port: 5433
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment