Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make clean before make all for sonarqube
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 27 May 2016 11:26:51 +0000 (13:26 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 27 May 2016 11:26:51 +0000 (13:26 +0200)
tools/internal/travis-sonarqube.sh

index c54b798..e19f120 100755 (executable)
@@ -21,6 +21,9 @@ installSonarQubeScanner
 installBuildWrapper
 
 # triggers the compilation through the build wrapper to gather compilation database
+# We need to clean the build that was used for the tests before to ensure that everything gets rebuilt:
+#   sonarqube only use what's built throught its wrappers
+make clean
 ./build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-outputs make all
 
 # and finally execute the actual SonarQube analysis (the SONAR_TOKEN is set from the travis web interface, to not expose it)