summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2017-04-03 07:20:05 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2017-04-03 07:20:05 +0200
commitd3dc03e2232cc8629345872757cd9d4d952c18de (patch)
tree82bf2b5315d0f59f620a2ba96a18425b3b79af81
parent7a653c0e018396adaa0ec809833eeee9f5635e06 (diff)
Update travis CI configuration to launch SonarQube
-rw-r--r--.travis.yml18
-rw-r--r--sonar-project.properties28
2 files changed, 44 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index faa1440..f83d717 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,3 +1,12 @@
+dist: trusty
+sudo: true
+
+addons:
+ sonarqube:
+ organization: "cgsecurity-github"
+ token:
+ secure: "HGnOsSSghmeMHCbigtEAgkV6oaJZ1xFUhvZun0oPOv7Y2XCpIPw376G5wTppgzZUZdcSsNcu63FAnWmZZDBH29mAd6K4tIw6MDqAe9UyLzWHMEMWrMQjqSMOaqetLCw4e1Zqa0kSYyZAdg4Fp7NrNjPLho1fVUJBCCrBtU1AxaPmMNkGpSZ1d9YK6rz58jNBnm7dKp0LSUFfcas88aXKuGhGYdttdPmD4/E6XQprFGMzBMk7XXV2guKgziAprhaIAF7QOs24FhAq6IKSu00JH5UAqtgeQ9+K7srv4lHeHz/N2SzLJldrei3+WNo72T8g10enJpcerZ/lS0Tl/J+5YPsC0TAXRqZmWlbSs7CR/N6CTMlckox8tUTeDyptIYhh50xZYwR+WB4ODW5vROz7EKXVfd7YHprnMZuGMw8eJaenTZ8wm/erms38rmZNsRKqoHWXxP4QwjOJumMFJVKyq1/5MkT18lA2Ajy57WcS6SjWGyRhdirV/IGbsFdS8A21PQ0ASDA7UjJrDYclmiEfy7G1OItMv739llM2z23mN/UnKO9ijPPfi3quCSEeozQiOLQpwsdmGUhAkPfBN6dAutqIrgXl/rFV3y2KNhDprWd0GBrtNhcTLWr3/5+0rrh8ntkF904QCBvR1XwOUH4z8nmGq35WXVs4Y2aafrRw1dM="
+
language: c
compiler:
- gcc
@@ -8,7 +17,12 @@ install:
before_script:
- autoreconf -i
script:
- - ./configure --disable-qt && make
+ - ./configure --disable-qt
+ - make clean
+ - build-wrapper-linux-x86-64 --out-dir bw-output make all
+ - sonar-scanner
after_success:
- sudo make install
-sudo: true
+cache:
+ directories:
+ - '$HOME/.sonar/cache'
diff --git a/sonar-project.properties b/sonar-project.properties
new file mode 100644
index 0000000..1cd2e65
--- /dev/null
+++ b/sonar-project.properties
@@ -0,0 +1,28 @@
+# must be unique in a given SonarQube instance
+sonar.projectKey=testdisk
+# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
+sonar.projectName=testdisk
+sonar.projectVersion=7.1
+
+# =====================================================
+# Meta-data for the project
+# =====================================================
+
+sonar.links.homepage=https://github.com/cgsecurity/testdisk
+sonar.links.ci=https://travis-ci.org/cgsecurity/testdisk
+sonar.links.scm=https://github.com/cgsecurity/testdisk
+sonar.links.issue=https://github.com/cgsecurity/testdisk/issues
+
+
+# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
+# Since SonarQube 4.2, this property is optional if sonar.modules is set.
+# If not set, SonarQube starts looking for source code from the directory containing
+# the sonar-project.properties file.
+sonar.sources=.
+
+# Encoding of the source code. Default is default system encoding
+sonar.sourceEncoding=UTF-8
+
+# Properties specific to the C/C++ analyzer:
+sonar.cfamily.build-wrapper-output=bw-output
+sonar.cfamily.gcov.reportsPath=.