sudo: false
language: java
addons:
  sonarqube:
    organization: "jcgay-github"
    token:
      secure: "LzgaDK3Jw49v8jDdR6bnb+F9m7mscSaS5KiZEs7pxAzWRgPYVjc3eBipDaMzHYQvUMprTnh1gPL3k45m7CdH5gUN1JeGQxaD4F/0oIVHOlUDDACUSlzpmXdcEcFmtQjo9DXNWWr4e0dNeHC/zk+4edu+dRQtVSDBk5zWXSmrEoQ"
before_install:
  - jdk_switcher use openjdk6
  - sed -i "s|\[JDK6\]|$JAVA_HOME|g" etc/toolchains.xml
  - jdk_switcher use oraclejdk8
install:
  - mvn install -DskipTests=true -B -V -t etc/toolchains.xml
script:
  - mvn package sonar:sonar -Prun-coverage -B -t etc/toolchains.xml
after_success:
  - mvn install coveralls:report -Prun-coverage -t etc/toolchains.xml
cache:
  directories:
    - '$HOME/.m2/repository'
    - '$HOME/.sonar/cache'

sudo: false
language: java
addons:
  sonarcloud:
    organization: "jcgay-github"
    token:
      secure: "LzgaDK3Jw49v8jDdR6bnb+F9m7mscSaS5KiZEs7pxAzWRgPYVjc3eBipDaMzHYQvUMprTnh1gPL3k45m7CdH5gUN1JeGQxaD4F/0oIVHOlUDDACUSlzpmXdcEcFmtQjo9DXNWWr4e0dNeHC/zk+4edu+dRQtVSDBk5zWXSmrEoQ"
before_install:
  - jdk_switcher use openjdk6
  - sed -i "s|\[JDK6\]|$JAVA_HOME|g" etc/toolchains.xml
  - jdk_switcher use oraclejdk8
install:
  - mvn install -DskipTests=true -B -V -t etc/toolchains.xml
script:
  - mvn package sonar:sonar -Prun-coverage -B -t etc/toolchains.xml
after_success:
  - mvn install coveralls:report -Prun-coverage -t etc/toolchains.xml
cache:
  directories:
    - '$HOME/.m2/repository'
    - '$HOME/.sonar/cache'

Use new sonarcloud addon name on Travis CI
Use new sonarcloud addon name on Travis CI
