From b9c058d0db508535174c6fdbcbd9f0711c0ebdf8 Mon Sep 17 00:00:00 2001 From: Rily Dunlap Date: Mon, 14 Nov 2022 15:43:41 +0000 Subject: [PATCH] Update .gitlab-ci.yml - added sonar scanning job --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 61afce6e..feee3aca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -119,3 +119,22 @@ dockerize-testnet: manual timeout: 3h + +sonarqube-check: + 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: + - merge_requests + - branches +