os:
- linux
language: php

php:
- '7.2'
- '7.3'

addons:
  postgresql: '11.0'

cache:
  directories:
  - node_modules
  - vendor
  - "$HOME/.composer/cache/files"

before_script:
  - cp .env.travis .env
  - psql -c 'CREATE DATABASE laravel;' -U postgres
  - composer self-update
  - composer install --no-interaction
  - php artisan key:generate
  - php artisan migrate --no-interaction -vvv

script:
  - vendor/bin/phpunit --coverage-text

os:
- linux
language: php

php:
- '7.2'
- '7.3'

services: postgresql

cache:
  directories:
  - node_modules
  - vendor
  - "$HOME/.composer/cache/files"

before_script:
  - cp .env.travis .env
  - psql -c 'CREATE DATABASE laravel;' -U postgres
  - composer self-update
  - composer install --no-interaction
  - php artisan key:generate
  - php artisan migrate --no-interaction -vvv

script:
  - vendor/bin/phpunit --coverage-text

Fix Travis file to match services in their docs
Fix Travis file to match services in their docs
