added new build scripts
This commit is contained in:
parent
d4000cc308
commit
bfeca263bb
14
.gitlab-ci.yml
Normal file
14
.gitlab-ci.yml
Normal file
@ -0,0 +1,14 @@
|
||||
stages:
|
||||
- test
|
||||
- sonar
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script: mvn clean verify
|
||||
|
||||
sonar:
|
||||
stage: sonar
|
||||
script:
|
||||
- mvn clean verify sonar:sonar --settings settings.xml
|
||||
only:
|
||||
- master
|
@ -1,7 +0,0 @@
|
||||
language: java
|
||||
jdk:
|
||||
- oraclejdk8
|
||||
script: "mvn clean test -Dninja.mode=test -Dgpg.skip=true"
|
||||
notifications:
|
||||
email: sk@svenkubiak.de
|
||||
|
18
settings.xml
Normal file
18
settings.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<settings>
|
||||
<pluginGroups>
|
||||
<pluginGroup>org.sonarsource.scanner.maven</pluginGroup>
|
||||
</pluginGroups>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>sonar</id>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
<properties>
|
||||
<sonar.host.url>${env.SONAR_URL}</sonar.host.url>
|
||||
<sonar.login>${env.SONAR_USER}</sonar.login>
|
||||
<sonar.password>${env.SONAR_PASSWORD}</sonar.password>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
</settings>
|
Loading…
x
Reference in New Issue
Block a user