From e10f184ee69bf02f6b6fa2f5d24450c7c9196c1b Mon Sep 17 00:00:00 2001 From: Rinde van Lon Date: Tue, 15 Nov 2016 10:20:41 +0100 Subject: [PATCH] updated travis --- .travis.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index faf92e4..97b6a13 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,13 +4,21 @@ jdk: - oraclejdk7 - openjdk7 +# OpenJDK 7 buffer overflow workaround from https://github.com/travis-ci/travis-ci/issues/5227 before_install: - cat /etc/hosts # optionally check the content *before* - sudo hostname "$(hostname | cut -c1-63)" - - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts + - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts > /tmp/hosts + - sudo mv /tmp/hosts /etc/hosts - cat /etc/hosts # optionally check the content *after* + install: mvn install -DskipTests=true +before_script: + - "export DISPLAY=:99.0" + - "sh -e /etc/init.d/xvfb start" + - sleep 3 # give xvfb some time to start + script: mvn verify sudo: required