diff options
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. # |