sudo: false
dist: xenial

language: python

python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
  - 3.7

install:
  - pip install tox-travis coveralls

before_script:
  - psql -c 'create database timezone_field_tests;' -U postgres

script:
  - tox

after_success:
  - coveralls

sudo: false
dist: xenial

services:
  - postgresql

language: python

python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
  - 3.7

install:
  - pip install tox-travis coveralls

before_script:
  - psql -c 'create database timezone_field_tests;' -U postgres

script:
  - tox

after_success:
  - coveralls

Add PostgreSQL as a Travis CI service
Add PostgreSQL as a Travis CI service

This used to be installed by default in the old Trusty images but they now require you to explicitly request it in your build.
