From cfe0d6dca549134bb2a9c3d8d9cafdb19eefcdc9 Mon Sep 17 00:00:00 2001 From: Dominic Kempf Date: Mon, 19 Aug 2024 10:48:47 +0200 Subject: [PATCH] Remove sonarcloud --- .github/workflows/sonarcloud.yml | 52 -------------------------------- README.md | 1 - sonar-project.properties | 18 ----------- 3 files changed, 71 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 43fdec4..0000000 --- a/.github/workflows/sonarcloud.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: SonarCloud Analysis - -on: - push: - branches: - - main - pull_request: - types: - - opened - - synchronize - - reopened - workflow_dispatch: - -env: - SONAR_SCANNER_VERSION: 4.4.0.2170 - -jobs: - sonarcloud: - name: SonarCloud - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - submodules: 'recursive' - - - name: Install dependencies - run: | - sudo apt install -y libyaml-cpp-dev - - - name: Install the SonarCloud Client + build wrapper - run: | - curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/ - curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip - unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/ - - - name: Compile, Run and Analyse the tests - run: | - mkdir build - cd build - cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="--coverage" - $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output cmake --build . - ctest - mkdir gcov - cd gcov - gcov -p ../test/CMakeFiles/testcerberus.dir/*.cc.gcno > /dev/null - cd ../.. - $HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux/bin/sonar-scanner - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/README.md b/README.md index de727ab..325f93e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/dokempf/cerberus-cpp/ci.yml?branch=main)](https://github.com/dokempf/cerberus-cpp/actions/workflows/ci.yml) [![Documentation Status](https://readthedocs.org/projects/cerberus-cpp/badge/?version=latest)](https://cerberus-cpp.readthedocs.io/en/latest/?badge=latest) -[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=dokempf_cerberus-cpp&metric=alert_status)](https://sonarcloud.io/dashboard?id=dokempf_cerberus-cpp) [![codecov](https://codecov.io/gh/dokempf/cerberus-cpp/branch/main/graph/badge.svg?token=OMP0HYTKD6)](https://codecov.io/gh/dokempf/cerberus-cpp) # What is cerberus-cpp diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index fcbdde2..0000000 --- a/sonar-project.properties +++ /dev/null @@ -1,18 +0,0 @@ -sonar.projectKey=dokempf_cerberus-cpp -sonar.organization=dokempf -sonar.projectName=cerberus-cpp -sonar.projectVersion=1.0 -sonar.host.url=https://sonarcloud.io - -# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. -sonar.sources=test,cerberus-cpp - -# Exclusions -sonar.coverage.exclusions=test/* -sonar.test.exclusions=test/* - -# C++ specifics -sonar.cfamily.build-wrapper-output=build/bw-output -sonar.cfamily.gcov.reportsPath=build/gcov-report -sonar.cfamily.threads=2 -sonar.cfamily.cache.enabled=false