Commit bf86323b authored by Jason Frisvold's avatar Jason Frisvold
Browse files

- Add CI for sonar tests

parent e703a0e8
Pipeline #259 passed with stage
in 50 seconds
image: docker:git
services:
- docker:dind
variables:
GIT_SSL_NO_VERIFY: "true"
DOCKER_DRIVER: overlay
stages:
- analysis
sonarqube:
stage: analysis
image: ciricihq/gitlab-sonar-scanner
variables:
SONAR_URL: https://sq.godshell.com
SONAR_ANALYSIS_MODE: publish
script:
- gitlab-sonar-scanner
# SERVER SETTINGS
sonar.host.url="https://sq.godshell.com:443"
# REQUIRED METADATA
sonar.projectKey=phptodo
sonar.projectName=phptodo
#sonar.language=py
# Path to source directories (required)
sonar.sources=.
#sonar.exclusions=src/old_tests/*,src/sandbox/*,setup.py,data/*,requires/*
# Sonar CPD
sonar.leak.period=previous_version
# Test Directories
#tests=src/tests
# python
sonar.python.xunit.skipdetails=true
sonar.python.coverage.reportpath=coverage.xml
sonar.python.coverage.overallreportpath=coverage.xml
sonar.python.xunit.reportpath=result.xml
sonar.python.coverage.forcezerocoverage=true
sonar.coverage.exclusions=src/sandbox/*,src/old_tests,data/*,requires/*
# duplication
sonar.cpd.exclusions=src/old_tests/*,src/sandbox/*,setup.py,data/*,requires/*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment