Commit 02874b97 authored by Raphaël Flores's avatar Raphaël Flores
Browse files

Merge branch 'chore/update_deprecated_sonarqube_properties' into 'master'

Chore: update deprecated sonarqube properties and add properties needed for MR decoration.

See merge request !76
parents 8eaf57a3 e2bd9e93
......@@ -62,10 +62,16 @@ test-and-sonarqube:
command: ["bin/elasticsearch", "-Ediscovery.type=single-node"]
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=true"
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
SONAR_BRANCH_OPTS: "-Dsonar.pullrequest.key=$CI_MERGE_REQUEST_ID -Dsonar.pullrequest.branch=$CI_COMMIT_REF_NAME"
cache:
key: "${CI_JOB_NAME}"
paths:
- .sonar/cache
script:
- ./gradlew :frontend:test --parallel
- ./gradlew :backend:test --parallel
- ./gradlew :backend:test jacocoTestReport --parallel
- find /tmp/node/*/bin -name node -exec ln -s {} /tmp/node/node \;
- export PATH="/tmp/node/:$PATH"
- ./gradlew -s sonarqube -x test $SONAR_BRANCH_OPTS
......
plugins {
id("org.sonarqube") version "2.8"
id("org.sonarqube") version "3.2.0"
}
sonarqube {
properties {
property ("sonar.projectKey", "urgi-is_faidare_AXlGu_BxPgTGgvpuDgeB")
property ("sonar.qualitygate.wait", false)
}
}
......@@ -4,6 +4,6 @@ systemProp.sonar.sources=frontend/src
systemProp.sonar.language=typescript
systemProp.sonar.scm.provider=git
systemProp.sonar.typescript.tsconfigPath=frontend/tsconfig.json
systemProp.sonar.typescript.lcov.reportPaths=frontend/coverage/lcov.info
systemProp.sonar.typescript.node=/tmp/node/node
systemProp.sonar.javascript.lcov.reportPaths=frontend/coverage/lcov.info
systemProp.sonar.nodejs.executable=/tmp/node/node
systemProp.sonar.typescript.exclusions=**/*.spec.ts
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment