From d2280dd90a3e815dd7bdeb85faf97b30f4f8d9b8 Mon Sep 17 00:00:00 2001 From: Salvatore Ingala <6681844+bigspider@users.noreply.github.com> Date: Tue, 29 Oct 2024 16:18:29 +0100 Subject: [PATCH] Remove SonarCloud code analysis --- .github/workflows/sonarcloud.yml | 44 -------------------------------- sonar-project.properties | 18 ------------- 2 files changed, 62 deletions(-) delete mode 100644 .github/workflows/sonarcloud.yml delete mode 100644 sonar-project.properties diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml deleted file mode 100644 index 240571e83..000000000 --- a/.github/workflows/sonarcloud.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Sonarcloud - -on: - pull_request: - branches: - - master - - develop - types: [opened, synchronize, reopened] - -jobs: - sonarcloud: - runs-on: ubuntu-latest - container: - image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-legacy:latest - - env: - BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed - steps: - - uses: actions/checkout@v4 - with: - # Disabling shallow clone is recommended for improving relevancy of reporting - fetch-depth: 0 - - name: Install dependencies - run: | - apt-get update -y - apt-get upgrade -y - DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata - apt-get install -y libcmocka-dev gcovr unzip - - name: Install sonar-scanner and build-wrapper - uses: sonarsource/sonarcloud-github-c-cpp@v2 - - name: Generate code coverage - run: | - cd unit-tests/ - cmake -Bbuild -H. && make -C build - make -C build test - gcovr --root .. --sonarqube coverage.xml - - name: Run build-wrapper - run: | - build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make TARGET=nanosp - - name: Run sonar-scanner - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: sonar-scanner --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}" #Consult https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarscanner-cli/ for more information and options \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index 9a06bc4fd..000000000 --- a/sonar-project.properties +++ /dev/null @@ -1,18 +0,0 @@ -sonar.projectKey=LedgerHQ_app-bitcoin-new -sonar.organization=ledger - -# This is the name and version displayed in the SonarCloud UI. -sonar.projectName=app-bitcoin-new - -# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. -sonar.sources=. - -# Encoding of the source code. Default is default system encoding -sonar.sourceEncoding=UTF-8 - -sonar.cfamily.threads=1 -sonar.cfamily.cache.enabled=false - -sonar.python.version=3.10 - -sonar.coverageReportPaths=unit-tests/coverage.xml