dist: focal
language: ruby
sudo: false
services:
  - mongodb
  - postgresql
gemfile:
  - Gemfile
  - Gemfile.rails60
  - Gemfile.mongo_mapper
rvm:
  - 2.5.8
  - 2.6.6
  - 2.7.1
before_install:
  - gem install bundler
env:
  global:
    - DB_USER=postgres
    - DB_PASS=
  matrix:
    - DB=sqlite3
    - DB=postgresql
matrix:
  fast_finish: true
  exclude:
    - gemfile: Gemfile.mongo_mapper
      env: DB=postgresql
branches:
  only:
    - master
notifications:
  email: false

dist: focal
language: ruby
sudo: false
services:
  - mongodb
addons:
  postgresql: "13"
gemfile:
  - Gemfile
  - Gemfile.rails60
  - Gemfile.mongo_mapper
rvm:
  - 2.5.8
  - 2.6.6
  - 2.7.1
before_install:
  - gem install bundler
env:
  global:
    - DB_USER=postgres
    - DB_PASS=
  matrix:
    - DB=sqlite3
    - DB=postgresql
matrix:
  fast_finish: true
  exclude:
    - gemfile: Gemfile.mongo_mapper
      env: DB=postgresql
branches:
  only:
    - master
notifications:
  email: false

Use PostgreSQL 13 in Travis CI
Use PostgreSQL 13 in Travis CI

Currently, PostgreSQL 12 on Focal doesn't work.
Ref: https://travis-ci.community/t/postgresql-broken-on-focal/10371
