From 12329d0a8ccb1dd35f2f3d3e0acb68b838bb2fdd Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Fri, 16 Dec 2016 17:27:19 +0800 Subject: [PATCH] Update .travis.yml --- .travis.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 65cf5e12a..5fcb077e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,14 @@ language: java +sudo: false +install: true +addons: + sonarqube: + token: + secure: "834110c7191f97ecb226970c46dcaff8e681da5a" + jdk: - oraclejdk7 - -script: "mvn clean package -Dmaven.test.skip=true" +#script: "mvn clean package -Dmaven.test.skip=true" branches: only: @@ -11,3 +17,10 @@ branches: notifications: email: - binaryw@qq.com + +script: + - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar +cache: + directories: + - '$HOME/.m2/repository' + - '$HOME/.sonar/cache'