You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Alexandre AGOSTINHO
741ed0bd7f
continuous-integration/drone/push Build is passing
Details
|
8 months ago | |
---|---|---|
.drone.yml | 8 months ago | |
Dockerfile | 8 months ago | |
README.md | 8 months ago |
README.md
codefirst-dronesonarplugin-php
This Docker image should be used for sonarqube integration in PHP projects.
Usage
- name: code-inspection
image: hub.codefirst.iut.uca.fr/alexandre.agostinho/codefirst-dronesonarplugin-php
secrets: [ SECRET_SONAR_LOGIN ]
environment:
sonar_host: https://codefirst.iut.uca.fr/sonar/
sonar_token:
from_secret: SECRET_SONAR_LOGIN
project_key: << your:project:key >>
source_folder: << your/source/folder >>
test_folder: << your/test/folder >>
commands:
- phpunit --coverage-clover=coverage.xml --coverage-filter $${source_folder} $${test_folder}
- sonar-scanner -Dsonar.host.url=$${sonar_host} -Dsonar.login=$${sonar_token} -Dsonar.php.coverage.reportPaths="coverage.xml" -Dsonar.projectKey=$${project_key} -Dsonar.coverage.exclusions="$${test_folder}/**"