aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/build-data/sonar-project.properties8
-rwxr-xr-xsrc/scripts/ci/setup_travis.sh2
-rwxr-xr-xsrc/scripts/ci_build.py2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/build-data/sonar-project.properties b/src/build-data/sonar-project.properties
index 408210b81..e2ffd3b07 100644
--- a/src/build-data/sonar-project.properties
+++ b/src/build-data/sonar-project.properties
@@ -4,12 +4,12 @@ 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 
+# 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
+sonar.sources=..
# Language, needed for SonarQube < 4.2
sonar.language=cpp
diff --git a/src/scripts/ci/setup_travis.sh b/src/scripts/ci/setup_travis.sh
index 425602e71..66837268a 100755
--- a/src/scripts/ci/setup_travis.sh
+++ b/src/scripts/ci/setup_travis.sh
@@ -58,7 +58,7 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; then
tar -C / -xvjf softhsm2-trusty-bin.tar.bz2
/tmp/softhsm/bin/softhsm2-util --init-token --free --label test --pin 123456 --so-pin 12345678
- elif [ "$BUILD_MODE" = "sonarqube" ]; then
+ elif [ "$BUILD_MODE" = "sonar" ]; then
wget https://sonarqube.com/static/cpp/build-wrapper-linux-x86.zip
unzip build-wrapper-linux-x86.zip
diff --git a/src/scripts/ci_build.py b/src/scripts/ci_build.py
index e35315bd3..3f9c15da6 100755
--- a/src/scripts/ci_build.py
+++ b/src/scripts/ci_build.py
@@ -96,7 +96,7 @@ def determine_flags(target, target_os, target_cc, cc_bin, use_ccache, root_dir):
else:
flags += ['--with-openmp']
- if target == 'sonarqube':
+ if target == 'sonar':
make_prefix = [os.path.join(root_dir, 'build-wrapper-linux-x86/build-wrapper-linux-x86-64'),
'--out-dir', 'bw-outputs']
test_cmd = ['sonar-scanner',