diff --git a/.github/workflows/sonarqube-scan.yml b/.github/workflows/sonarqube-scan.yml deleted file mode 100644 index 8a5acaa31..000000000 --- a/.github/workflows/sonarqube-scan.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: SonarQube-Workflow -on: - pull_request: - branches: [ master ] - push: - branches: [ master ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: -jobs: - sonarQube: - name: SonarQube-Job - runs-on: ubuntu-latest - if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'EnterpriseDB/barman' - steps: - - name: Checkout source repo - uses: actions/checkout@v2 - - name: Checkout GitHub Action Repo - uses: actions/checkout@master - with: - repository: EnterpriseDB/edb-github-actions.git - ref: master - token: ${{ secrets.REPO_ACCESS_TOKEN }} - path: .github/actions/edb-github-actions - - name: SonarQube Scan - uses: ./.github/actions/edb-github-actions/sonarqube - with: - REPO_NAME: '${{github.event.repository.name}}' - SONAR_PROJECT_KEY: '${{secrets.SONARQUBE_PROJECTKEY}}' - SONAR_URL: '${{secrets.SONARQUBE_URL}}' - SONAR_LOGIN: '${{secrets.SONARQUBE_LOGIN}}' - PULL_REQUEST_KEY: '${{github.event.number}}' - PULL_REQUEST_BRANCH: '${{github.head_ref}}' - PULL_REQUEST_BASE_BRANCH: '${{github.base_ref}}' - REPO_DEFAULT_BRANCH: '${{github.event.repository.default_branch}}' - REPO_EXCLUDE_FILES: '**/src/test/**/*,**/docs/**/*,**/build/**' diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index d15c283c7..000000000 --- a/sonar-project.properties +++ /dev/null @@ -1,4 +0,0 @@ -sonar.python.coverage.reportPaths=coverage-reports/coverage.xml -sonar.python.xunit.reportPath=coverage-reports/results.xml -#sonar.python.xunit.skipDetails=true -sonar.coverage.exclusions=**/tests/**/*.py,**/sphinx/**/*.py,setup.py diff --git a/sonarqube/configure-env.sh b/sonarqube/configure-env.sh deleted file mode 100755 index 551b289de..000000000 --- a/sonarqube/configure-env.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - - - ########################## - # Setup build environment - ########################## - SetupEnv(){ - echo "current place :" pwd - sudo apt-get -y install python3-pip libpq-dev python3-dev - sudo python3 -m pip install --upgrade pip setuptools wheel - - echo "Install dependencies" - sudo python3 -m pip install -r tests/requirements_dev.txt - sudo python3 -m pip install pytest-cov - } - - - ################## - # Add build steps - ################## - GenerateReports(){ - echo "Create Coverage report" - python3 -m py.test --cov barman --cov-report xml:coverage-reports/coverage.xml --junitxml=coverage-reports/results.xml - } - - - ######## - # Main - ######## - SetupEnv - GenerateReports