From 5ad9aa75181d0dc1a42d128f742bd475a3652362 Mon Sep 17 00:00:00 2001 From: halljon Date: Sat, 26 May 2018 14:31:45 +0100 Subject: [PATCH] #3 - starting integration with SonarQube cloud. --- .travis.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2b2dfcb..209a0b9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,19 @@ language: java jdk: - - oraclejdk8 \ No newline at end of file + - oraclejdk8 + +sudo: false +install: true +addons: + sonarcloud: + organization: "your_organization_key" + token: + secure: "your_token_encrypted_with_travis_encrypt_tool" + +script: + - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar +cache: + directories: + - '$HOME/.m2/repository' + - '$HOME/.sonar/cache'