Add cicd and sonar
continuous-integration/drone Build is passing Details

This commit is contained in:
qvalentin 2022-03-06 10:39:45 +01:00
parent f69edc3f4e
commit c33b2dc009
2 changed files with 39 additions and 0 deletions

20
.drone.yml Normal file
View File

@ -0,0 +1,20 @@
---
kind: pipeline
type: docker
name: Tests Coverage
steps:
- name: Run Tests With Coverage
image: maven:3.8-openjdk-17-slim
environment:
SONAR_LOGIN:
from_secret: SONAR_TOKEN
commands:
- mvn clean verify sonar:sonar -s ./settings.xml
trigger:
branch:
include:
- master
trigger:
event:
- push

19
settings.xml Normal file
View File

@ -0,0 +1,19 @@
<settings>
<pluginGroups>
<pluginGroup>org.sonarsource.scanner.maven</pluginGroup>
</pluginGroups>
<profiles>
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sonar.host.url>
https://sonar.filefighter.de
</sonar.host.url>
<sonar.login>${env.SONAR_LOGIN}</sonar.login>
</properties>
</profile>
</profiles>
</settings>