Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
another try at having coverage info on travis, for sonar
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 28 Feb 2017 02:10:10 +0000 (03:10 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 28 Feb 2017 02:10:10 +0000 (03:10 +0100)
sonar-project.properties
tools/internal/travis-sonarqube.sh

index c5addf1..cbec4f8 100644 (file)
@@ -78,6 +78,10 @@ sonar.issue.ignore.allfile.flexMLGenerated.fileRegexp="generated with the FleXML
 # The build-wrapper output dir
 sonar.cfamily.build-wrapper-output=bw-outputs
 
+# Where the coverage files are located
+# See https://docs.sonarqube.org/pages/viewpage.action?pageId=5312222
+sonar.cfamily.gcov.reportsPath=Testing/CoverageInfo
+
 # Encoding of the source files
 sonar.sourceEncoding=UTF-8
 
index 145772e..6840e0f 100755 (executable)
@@ -39,6 +39,9 @@ installBuildWrapper
 # Run ctest before sonar to gather coverage some information
 ctest --output-on-failure --timeout 100
 
+# generate the gcov files
+ctest -D ExperimentalCoverage
+
 # and finally execute the actual SonarQube analysis 
 # (the SONAR_TOKEN is set from the travis web interface, to not expose it with an ongoing "set -x")
 # See https://docs.travis-ci.com/user/sonarqube/ for more info on tokens