language: java

jdk:
    - oraclejdk8
    - openjdk8
    - oraclejdk9

services:
      - postgresql

before_script:
      - psql -c $'create role "mongo-java-server-test" login password \'mongo-java-server-test\';' -U postgres
      - psql -c 'create database "mongo-java-server-test" with owner = "mongo-java-server-test";' -U postgres

addons:
      postgresql: "9.5"

language: java

jdk:
    - oraclejdk8
    - openjdk8
    - oraclejdk9
    - openjdk10
    - openjdk11

services:
      - postgresql

before_script:
      - psql -c $'create role "mongo-java-server-test" login password \'mongo-java-server-test\';' -U postgres
      - psql -c 'create database "mongo-java-server-test" with owner = "mongo-java-server-test";' -U postgres

addons:
      postgresql: "9.5"

Build and test also on OpenJDK 10 and 11
Build and test also on OpenJDK 10 and 11
