language: java
jdk:
  - openjdk8
  - openjdk9
  - openjdk10
  - openjdk11

#before_script:
#  - pip install --user codecov

#after_success:
#  - codecov

#addons:
#  srcclr: true 
addons:
  sonarcloud:
    organization: "apache" 
script:
  # other script steps might be done before running the actual analysis
  - sonar-scanner
#  - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar

language: java
dist: trusty
jdk:
  - openjdk8
  - openjdk9
  - openjdk10
  - openjdk11

#before_script:
#  - pip install --user codecov

#after_success:
#  - codecov

#addons:
#  srcclr: true 
addons:
  sonarcloud:
    organization: "apache" 
script:
  # other script steps might be done before running the actual analysis
  - sonar-scanner
#  - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar

Add Trusty as CI environment
TAMAYA-277: Add Trusty as CI environment

Maybe this helps to get the sonar integration up and running.
