Skip to content

Commit aae5fa6

Browse files
authored
Merge pull request #18 from EBISPOT/GOCI-330-SonarQube-Integration
GOCI-330 SOnarQube Integration
2 parents cf6d482 + c433d29 commit aae5fa6

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: java
2+
sudo: false
3+
jdk:
4+
- openjdk8
5+
6+
env:
7+
global:
8+
- JAVA_OPTS="-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xmn48M -Xmx512M"
9+
addons:
10+
sonarcloud:
11+
organization: "gwas-ebi"
12+
#token:
13+
#secure: "LBTAViqGyi7anEYYLzuTyTF1L3Xnq7prupvyzW2mIUWJY6uh9Y3s0TItA+8CSUcbeCUf6MGrj8ydNi4PRLr/DpOCTIrt4FMs5mljaBE4BDfJMgts/hSzLSwSLOa2gKdOJg64ZNpeW+am/hH5/Wbuje6cegeNoNq1yRH4SMBLhnu3/JdmzDLc3pLNuhvNjy6/qX2YPyHLoJ9FE0SfkbULsbzHy7+EDLcxPUVby7aemOD0KUYDxw7Ee4jc5mH9HDrm9sqTFHw+4TWNMA5gsZX4NB3keSElMg9giwVTQT3zLG2sFNbhmhoD2rxs7JxTE+yVeg7ahLSW23LP7mkg4jdc4gR4h1VxB6wwxHIsx+1QZP8MSBOcwYPzLQIp3VyGK37sCVDJHGrpQXZG9SHWZfedmqo6EjabZK8lFCGG8fOTIj5A5FiltfaaHvEfgwbMki12zTm8GftodPJNUT336FNvTHOUlG/RNP3exArWpLXXZXw1gynn57tEVdd5qxdxxpc+QztJiKn2dByWehg5NYh7KwkGcQiNAerYYzMDpIjaVKO1hHeCSouuYFXxp++gBPW0z68Eojp7bVORA/I82nZdY6lkEnFFryHo3RTgU8q6ggDI233r10R/Unsl4bySisQ6z1McPZERQMIton1XMqbAkh3Eb337L+GEGzRSlLehNGM="
14+
script:
15+
- mvn clean verify sonar:sonar -Dspring.profiles.active=test -Dmaven.test.failure.ignore=true -Dmaven.test.error.ignore=true -Dsonar.login=0566d66d0cfe16cd2cb8ba02db7fcd0b6d1e7ee6

pom.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<properties>
2121
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2222
<start-class>uk.ac.ebi.spot.gwas.deposition.ingest.Application</start-class>
23+
<sonar.organization>gwas-ebi</sonar.organization>
2324
</properties>
2425

2526
<scm>
@@ -59,7 +60,43 @@
5960
<groupId>org.springframework.boot</groupId>
6061
<artifactId>spring-boot-maven-plugin</artifactId>
6162
</plugin>
63+
64+
<plugin>
65+
<groupId>org.apache.maven.plugins</groupId>
66+
<artifactId>maven-surefire-plugin</artifactId>
67+
</plugin>
68+
69+
<plugin>
70+
<groupId>org.jacoco</groupId>
71+
<artifactId>jacoco-maven-plugin</artifactId>
72+
<version>0.7.7.201606060606</version>
73+
<executions>
74+
<execution>
75+
<goals>
76+
<goal>prepare-agent</goal>
77+
</goals>
78+
</execution>
79+
<execution>
80+
<id>report</id>
81+
<goals>
82+
<goal>report</goal>
83+
</goals>
84+
</execution>
85+
</executions>
86+
</plugin>
87+
88+
6289
</plugins>
90+
91+
<pluginManagement>
92+
<plugins>
93+
<plugin>
94+
<groupId>org.sonarsource.scanner.maven</groupId>
95+
<artifactId>sonar-maven-plugin</artifactId>
96+
<version>3.4.0.905</version>
97+
</plugin>
98+
</plugins>
99+
</pluginManagement>
63100
</build>
64101

65102
<dependencies>

0 commit comments

Comments
 (0)