From a473dc4be1562476df6183edf91fffa575fda21f Mon Sep 17 00:00:00 2001 From: aadrian Date: Sat, 13 May 2017 17:55:00 +0200 Subject: [PATCH] try using a build matrix for Travis --- .travis.yml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 197d2a00..9f4e4bc2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,31 @@ # https://travis-ci.org/jwtk/jjwt + +dist: trusty +sudo: required + language: java -jdk: - - oraclejdk7 - - oraclejdk8 +matrix: + include: + - jdk: oraclejdk8 + addons: + apt: + packages: + - oracle-java8-installer + include: + - jdk: oraclejdk7 + addons: + apt: + packages: + - oracle-java7-installer before_install: - export BUILD_COVERAGE="$([ $TRAVIS_JDK_VERSION == 'oraclejdk8' ] && echo 'true')" + install: echo "No need to run mvn install -DskipTests then mvn install. Running mvn install." + script: mvn install + after_success: - test -z "$BUILD_COVERAGE" || mvn clean test jacoco:report coveralls:report +