Skip to content

Commit 43d1752

Browse files
committed
Adding support for maven sonar on travis as per Travis:
https://docs.travis-ci.com/user/sonarcloud/#sonarqube-scanner-for-maven
1 parent a4d9545 commit 43d1752

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ services:
77
jdk:
88
- oraclejdk8
99

10+
addons:
11+
sonarcloud:
12+
organization: utplsql
13+
token:
14+
secure: ${SONAR_TOKEN}
15+
1016
env:
1117
global:
1218
- DOCKER_CFG=$HOME/.docker
@@ -35,9 +41,10 @@ install:
3541

3642
script:
3743
- echo "Run Unit tests"
38-
- mvn test
44+
- mvn org.jacoco:jacoco-maven-plugin:prepare-agent test
3945
- echo "Run Integration tests"
40-
- mvn verify -Dmaven.skip.test -DdbUser="${DB_UT3_USER}" -DdbPass="${DB_UT3_PASS}" -DdbUrl="jdbc:oracle:thin:@${DB_URL}"
46+
- mvn org.jacoco:jacoco-maven-plugin:prepare-agent verify -Dmaven.skip.test -DdbUser="${DB_UT3_USER}" -DdbPass="${DB_UT3_PASS}" -DdbUrl="jdbc:oracle:thin:@${DB_URL}"
47+
- mvn sonar:sonar
4148

4249
#before_deploy:
4350
# - bash .travis/create_release.sh

0 commit comments

Comments
 (0)