Update travis CI configuration to launch SonarQube
This commit is contained in:
parent
7a653c0e01
commit
d3dc03e223
2 changed files with 44 additions and 2 deletions
18
.travis.yml
18
.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'
|
||||
|
|
28
sonar-project.properties
Normal file
28
sonar-project.properties
Normal file
|
@ -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=.
|
Loading…
Reference in a new issue