Skip to content

Commit d163a29

Browse files
authored
Merge pull request #30 from utPLSQL/feature/sonar
Feature/sonar
2 parents 9722a4f + 2010e3a commit d163a29

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

.travis.yml

Lines changed: 10 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,11 @@ 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
48+
4149

4250
#before_deploy:
4351
# - bash .travis/create_release.sh

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[![Build status](https://travis-ci.org/utPLSQL/utPLSQL-maven-plugin.svg?branch=develop)](https://travis-ci.org/utPLSQL/utPLSQL-maven-plugin)
2+
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=org.utplsql%3Autplsql-maven-plugin-parent&metric=alert_status)](https://sonarcloud.io/dashboard?id=org.utplsql%3Autplsql-maven-plugin-parent)
3+
14
# utPLSQL-maven-plugin
25
A maven plugin for running Unit Tests with utPLSQL v3+
36

@@ -97,6 +100,20 @@ You have to be a fully utPLSQL environment available compatible with the Java AP
97100
### Sample of use
98101
The next snippet is a sample of declaration of the pom
99102
```xml
103+
<project xmlns="http://maven.apache.org/POM/4.0.0"
104+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
105+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
106+
<modelVersion>4.0.0</modelVersion>
107+
108+
<groupId>org.my_org</groupId>
109+
<artifactId>my-artifact-name</artifactId>
110+
<version>1.0.0</version>
111+
112+
<properties>
113+
<dbUrl>url_of_connection</dbUrl>
114+
<dbUser>user</dbUser>
115+
<dbPass>password</dbPass>
116+
</properties>
100117
<plugin>
101118
<groupId>org.utplsql</groupId>
102119
<artifactId>utplsql-maven-plugin</artifactId>
@@ -105,9 +122,6 @@ The next snippet is a sample of declaration of the pom
105122
<goal>test</goal>
106123
</goals>
107124
<configuration>
108-
<dbUrl>url_of_connection</dbUrl>
109-
<dbUser>user</dbUser>
110-
<dbPass>password</dbPass>
111125
<ignoreFailure>false</ignoreFailure>
112126
<paths>
113127
<path>schema_name</path>
@@ -147,6 +161,7 @@ The next snippet is a sample of declaration of the pom
147161
</tests>
148162
</configuration>
149163
</plugin>
164+
</project>
150165
```
151166

152167
More project samples are available in the src/test/resources directory :

0 commit comments

Comments
 (0)