sudo: false

language: java

jdk: oraclejdk8

cache:
  directories:
  - $HOME/.m2

env: DISPLAY=:99.0

addons:
  apt:
    packages:
    - metacity

before_install:
# maven version is 3.2.5 by default on travis. Polyglot projects need Maven 3.3.1
 - wget https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip
 - unzip -qq apache-maven-3.3.9-bin.zip
 - export M2_HOME=$PWD/apache-maven-3.3.9
 - export PATH=$M2_HOME/bin:$PATH

install: true

before_script:
 - sh -e /etc/init.d/xvfb start
 - metacity --sm-disable --replace 2> metacity.err &

script:
 - export
 - mvn clean verify -P release-mesfavoris

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/ef692f2d5da17132be34
    on_success: change
    on_failure: always
    on_start: never

sudo: false

language: java
jdk: oraclejdk8

cache:
  directories:
  - $HOME/.m2

env: DISPLAY=:99.0

addons:
  apt:
    packages:
    - metacity
    - oracle-java8-installer

before_install:
# maven version is 3.2.5 by default on travis. Polyglot projects need Maven 3.3.1
 - wget https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip
 - unzip -qq apache-maven-3.3.9-bin.zip
 - export M2_HOME=$PWD/apache-maven-3.3.9
 - export PATH=$M2_HOME/bin:$PATH

install: true

before_script:
 - sh -e /etc/init.d/xvfb start
 - metacity --sm-disable --replace 2> metacity.err &

script:
 - export
 - mvn clean verify -P release-mesfavoris

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/ef692f2d5da17132be34
    on_success: change
    on_failure: always
    on_start: never

Include hack to run a newer JDK 8
Include hack to run a newer JDK 8

see: travis-ci/travis-ci#3259