Add cicd and sonar
continuous-integration/drone Build is passing
Details
continuous-integration/drone Build is passing
Details
This commit is contained in:
parent
f69edc3f4e
commit
c33b2dc009
|
@ -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
|
|
@ -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>
|
Reference in New Issue