I have the travis.yml file configured as follows:
dist: trusty language: java jdk: oraclejdk8 services: - mysql before_install: - mysql -e 'CREATE DATABASE petclinic;' script: mvn test -Dspring-boot.run.profiles=mysql-travis addons: sonarcloud: organization: "" token: secure: "" script: - mvn clean verify sonar:sonar -Pcoverage -Dsonar.projectKey = name
But I am not being executed. However if I remove the addons part down it does run. I clarify that where the quotes and
name go the corresponding variables and tokens. I don't know if the problem is because of the structure scheme that I follow, the idea is to include SonarCloud when analyzing together with Travis CI.