2017-05-20 23:33:53 +02:00
|
|
|
language: java
|
2018-03-11 20:42:08 +01:00
|
|
|
sudo: false
|
2018-08-03 17:06:28 +02:00
|
|
|
install: true
|
|
|
|
before_install:
|
|
|
|
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g'
|
|
|
|
~/.m2/settings.xml
|
2018-03-11 20:42:08 +01:00
|
|
|
addons:
|
2018-08-03 17:06:28 +02:00
|
|
|
sonarcloud:
|
|
|
|
organization: "tastybento-github"
|
|
|
|
token:
|
|
|
|
secure: $SONAR_TOKEN
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
- master
|
2018-03-11 20:42:08 +01:00
|
|
|
jdk:
|
2018-08-03 17:06:28 +02:00
|
|
|
- oraclejdk8
|
2018-03-11 20:42:08 +01:00
|
|
|
script:
|
2018-08-03 17:06:28 +02:00
|
|
|
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar
|
|
|
|
- echo "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
|
2018-03-11 20:42:08 +01:00
|
|
|
cache:
|
2018-08-03 17:06:28 +02:00
|
|
|
directories:
|
|
|
|
- '$HOME/.m2/repository'
|
|
|
|
- '$HOME/.sonar/cache'
|