diff options
author | Jack Lloyd <[email protected]> | 2016-11-22 10:33:29 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-22 10:33:29 -0500 |
commit | 750eb24df417b401012595147dfc7a473b7af7e9 (patch) | |
tree | fb919b10bb5559f8cbc7b149c6df80a915db1a99 /src | |
parent | cabdc385164906febdfbbb88cdc8801d4b970ece (diff) |
Move Sonar config to build-data
No actual reason for it to be in the root dir, only Sonar needs it,
so just copy it to the root dir before starting.
Diffstat (limited to 'src')
-rw-r--r-- | src/build-data/sonar-project.properties | 21 | ||||
-rwxr-xr-x | src/scripts/ci/travis/build.sh | 2 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/build-data/sonar-project.properties b/src/build-data/sonar-project.properties new file mode 100644 index 000000000..408210b81 --- /dev/null +++ b/src/build-data/sonar-project.properties @@ -0,0 +1,21 @@ +# must be unique in a given SonarQube instance +sonar.projectKey=botan + +# this is the name displayed in the SonarQube UI +sonar.projectName=Botan +sonar.projectVersion=1.0 + +# 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=src + +# Language, needed for SonarQube < 4.2 +sonar.language=cpp + +# The build-wrapper output dir +sonar.cfamily.build-wrapper-output=bw-outputs + +# Encoding of the source code. Default is default system encoding +sonar.sourceEncoding=UTF-8 diff --git a/src/scripts/ci/travis/build.sh b/src/scripts/ci/travis/build.sh index 0344fd892..014e963d7 100755 --- a/src/scripts/ci/travis/build.sh +++ b/src/scripts/ci/travis/build.sh @@ -139,6 +139,8 @@ ccache --show-stats if [ "$BUILD_MODE" = "sonarqube" ]; then + cp src/build-data/sonar-project.properties . + if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then # => This will run a full analysis of the project and push results to the SonarQube server. # |