Updated travis.yml

This commit is contained in:
tastybento 2019-11-07 17:09:07 -08:00
parent 4cb4c7e3fb
commit 32c44f2898
1 changed files with 8 additions and 6 deletions

View File

@ -3,18 +3,20 @@ sudo: false
addons: addons:
sonarcloud: sonarcloud:
organization: "bentobox-world" organization: "bentobox-world"
token:
secure: $SONAR_TOKEN
branches:
- develop
- master
jdk: jdk:
- openjdk8 - openjdk8
- openjdk11
matrix:
allow_failures:
- jdk: openjdk11
script: script:
#- sonar-scanner #- sonar-scanner
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package -P sonar sonar:sonar -B - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -Dsonar.projectKey=BentoBoxWorld_Challenges
#- echo "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}" #- echo "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
cache: cache:
directories: directories:
- '$HOME/.m2/repository' - '$HOME/.m2/repository'