diff --git a/.gitlabci/gitlab-ci-pleiade.yml b/.gitlabci/gitlab-ci-pleiade.yml index 37a4b88acf76308973ff26ae3da1eff760971b82..9e127283d245865d3c933934ebe587cc2b675e1b 100644 --- a/.gitlabci/gitlab-ci-pleiade.yml +++ b/.gitlabci/gitlab-ci-pleiade.yml @@ -47,3 +47,21 @@ auto_install: needs: ["prepare", "unittests"] script: - .gitlabci/test_auto_install.sh + +sonarqube-check: + stage: test + image: + name: sonarsource/sonar-scanner-cli:latest + entrypoint: [""] + variables: + 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 + cache: + key: "${CI_JOB_NAME}" + paths: + - .sonar/cache + script: + - sonar-scanner + allow_failure: true + # only: + # - main diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000000000000000000000000000000000000..604dd11d73689530f5abadfa82ab097842471144 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,3 @@ +sonar.projectKey=codeaster_devtools_AZTR4LwB2JThbS9_YjfM +sonar.qualitygate.wait=true +