Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions buildspec/sonar-scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ phases:
# Download unit test coverage report(s)
- aws s3 cp --recursive "$DSSS3URI/cache/dss-sdk/$GITHUB_RUN_NUMBER/unit/df_out/reports/" df_out/reports/ --only-show-errors
# replace the old CODEBUILD_SRC_DIR with the current one in bw-output
- sed -i -r "s|/codebuild/output/src[^/]+/src/github.com/OpenMPDK/dss-sdk|$CODEBUILD_SRC_DIR|g" bw-output/build-wrapper-dump.json
- sed -i -r "s|/codebuild/output/src[^/]+/src/github.com/OpenMPDK/dss-sdk|$CODEBUILD_SRC_DIR|g" bw-output/compile_commands.json
# Download the latest sonar-scanner
- rm -rf /sonar-scanner*
- wget --no-verbose --content-disposition -E -c "https://search.maven.org/remote_content?g=org.sonarsource.scanner.cli&a=sonar-scanner-cli&v=LATEST&c=linux&e=zip"
Expand All @@ -36,4 +36,5 @@ phases:
-Dsonar.pullrequest.key=$(echo $GITHUB_REF | grep -oP "^refs/pull/\K[^/]+") \
-Dsonar.pullrequest.base=$GITHUB_BASE_REF \
-Dsonar.pullrequest.branch=$GITHUB_HEAD_REF \
-Dsonar.coverageReportPaths=$SONAR_UNIT_TEST_REPORT
-Dsonar.coverageReportPaths=$SONAR_UNIT_TEST_REPORT \
-Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
1 change: 0 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
sonar.organization=openmpdk
sonar.projectKey=OpenMPDK_dss-sdk
sonar.cfamily.build-wrapper-output=bw-output
sonar.sources=target/,host/,utils/
sonar.tests=target/,tests/,systemtests/
sonar.exclusions=target/test/**/*,target/oss/**/*,host/src/**/*,**/*.java
Expand Down