Skip to content

[DE-838] fix sonarcloud configuration #565

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 29, 2024
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
6 changes: 2 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,12 @@ jobs:
- restore_cache:
name: Restore Sonar cache
key: sonar-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/maven_cache_seed" }}
- run:
name: Build
command: mvn verify -Pstatic-code-analysis -Dmaven.test.skip -Dgpg.skip -Dmaven.javadoc.skip
- run:
name: Test
command: mvn verify -am -pl test-functional -Pstatic-code-analysis -Dgpg.skip -Dmaven.javadoc.skip
- run:
name: Analyze
command: mvn verify -Dmaven.test.skip -Dgpg.skip -Dmaven.javadoc.skip org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=arangodb_arangodb-java-driver
command: mvn verify -Pstatic-code-analysis -Dmaven.test.skip -Dgpg.skip -Dmaven.javadoc.skip org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=arangodb_arangodb-java-driver
- save_cache:
name: Save Sonar cache
key: sonar-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/maven_cache_seed" }}
Expand Down Expand Up @@ -350,6 +347,7 @@ workflows:
- 'cluster'
args:
- '-DenableSlowTests=true'

test-adb-topology:
when: <<pipeline.parameters.docker-img>>
jobs:
Expand Down
1 change: 1 addition & 0 deletions driver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<properties>
<maven.deploy.skip>false</maven.deploy.skip>
<moduleName>com.arangodb.driver</moduleName>
<sonar.test.exclusions>src/test/**/*</sonar.test.exclusions>
</properties>

<build>
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
<maven.deploy.skip>true</maven.deploy.skip>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.organization>arangodb-1</sonar.organization>
<sonar.test.exclusions>src/test/**/*</sonar.test.exclusions>
<sonar.java.spotbugs.reportPaths>target/spotbugsXml.xml</sonar.java.spotbugs.reportPaths>
<sonar.coverage.jacoco.xmlReportPaths>site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<graalvm.version>23.1.1</graalvm.version>
</properties>

Expand Down
3 changes: 3 additions & 0 deletions release-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@
</executions>
<configuration>
<dataFile>../test-functional/target/jacoco.exec</dataFile>
<formats>
<format>XML</format>
</formats>
</configuration>
</plugin>
</plugins>
Expand Down
1 change: 1 addition & 0 deletions test-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<properties>
<maven.build.cache.enabled>false</maven.build.cache.enabled>
<adb.jackson.version>2.17.1</adb.jackson.version>
<sonar.skip>true</sonar.skip>
</properties>

<dependencies>
Expand Down