language: java

# Fixes Travis memory issue
env:
  - JAVA_TOOL_OPTIONS="-Xmx2048m -Xms512m"

jdk:
  - oraclejdk8

# fixes SWT display problem
before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - sleep 3 # give xvfb some time to start

script:
  - mvn clean verify

# Use latest stuff
dist: xenial

language: java

jdk:
  - openjdk8

# Creates a display for SWT
services:
  - xvfb

script:
  - mvn clean verify

Use OpenJDK, remove heap options, use xenial and xvfb service
[Travis] Use OpenJDK, remove heap options, use xenial and xvfb service
