language: java

jdk:
  - oraclejdk8

sudo: false
dist: trusty

services:
  - postgresql

addons:
  postgresql: "9.6"

before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/

before_script:
  - psql -f n12m-db/src/main/sql/setup_db.sql -U postgres

script:
  - ./gradlew n12m-db:setupTestData check

language: java

jdk:
  - oraclejdk8

# dist: trusty
# sudo: required

services:
  - postgresql

addons:
  postgresql: "9.4"

before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/

before_script:
  - psql -f n12m-db/src/main/sql/setup_db.sql -U postgres

script:
  - ./gradlew n12m-db:setupTestData check

Stop using Travis trusty and downgrade to pg 9.4
Stop using Travis trusty and downgrade to pg 9.4
