---
language: java
env:
  - git.target.branch=f11106

install: mvn --batch-mode -V --quiet -DskipTests=true -Dmaven.javadoc.skip=true validate

script: mvn --batch-mode -V clean verify
  
notifications:
  email:
  - niklaus.giger@member.fsf.org
jdk:
  - oraclejdk8

cache:
  directories:
  - $HOME/.m2

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

---
language: java
env:
  - git.target.branch=$TRAVIS_BRANCH

install: mvn --batch-mode -V --quiet -DskipTests=true -Dmaven.javadoc.skip=true validate

script: mvn --batch-mode -V clean verify
  
notifications:
  email:
  - niklaus.giger@member.fsf.org
jdk:
  - oraclejdk8

cache:
  directories:
  - $HOME/.m2

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

Set environment variable git.target.branch to TRAVIS_BRANCH
[15471] Set environment variable git.target.branch to TRAVIS_BRANCH
