sudo: false

language: java

cache:
  directories:
  - $HOME/.m2

branches:
  only:
    - master

install:
  - mvn -B clean install -Dmaven.test.skip.exec

script:
  - mvn -B test -Pjacoco -Pweld-1.2
  - mvn -B test -Pjacoco -Pweld-2.0
  - mvn -B test -Pjacoco -Powb -pl envs/se
  - mvn -B test -Pjacoco -Pjetty -pl envs/servlet
  - mvn -B test -Pjacoco -Pwildfly-10.x -pl envs/ee

jdk:
  - openjdk8
  - oraclejdk8

notifications:
  email:
    recipients:
      - antonin.stefanutti@gmail.com

after_success:
  - mvn jacoco:report -pl impl
  - mvn -N coveralls:report

dist: trusty
sudo: false

language: java

cache:
  directories:
  - $HOME/.m2

branches:
  only:
    - master

install:
  - mvn -B clean install -Dmaven.test.skip.exec

script:
  - mvn -B test -Pjacoco -Pweld-1.2
  - mvn -B test -Pjacoco -Pweld-2.0
  - mvn -B test -Pjacoco -Powb -pl envs/se
  - mvn -B test -Pjacoco -Pjetty -pl envs/servlet
  - mvn -B test -Pjacoco -Pwildfly-10.x -pl envs/ee

jdk:
  - openjdk8
  - oraclejdk8

notifications:
  email:
    recipients:
      - antonin.stefanutti@gmail.com

after_success:
  - mvn jacoco:report -pl impl
  - mvn -N coveralls:report

Use trusty Travis CI dist
Use trusty Travis CI dist