Skip to content

Commit a7f63e0

Browse files
committed
add codecov, update travis, use jacoco
1 parent 541e11a commit a7f63e0

File tree

4 files changed

+48
-51
lines changed

4 files changed

+48
-51
lines changed

.travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ language: java
22
jdk:
33
- oraclejdk8
44
services:
5-
- mongodb
5+
- mongodb
6+
after_success:
7+
- bash <(curl -s https://codecov.io/bash)
8+

codecov.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ignore:
2+
- "src/main/java/com/aventstack/extentreports/reporter/ExtentKlovReporter.java"
3+
- "src/main/java/com/aventstack/extentreports/mediastorage/impl*"
4+

pom-nexus.xml

+20
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
</reporting>
9898

9999
<build>
100+
<sourceDirectory>src/main/java</sourceDirectory>
100101
<plugins>
101102
<plugin>
102103
<groupId>org.apache.maven.plugins</groupId>
@@ -126,6 +127,25 @@
126127
</execution>
127128
</executions>
128129
</plugin>
130+
<plugin>
131+
<groupId>org.jacoco</groupId>
132+
<artifactId>jacoco-maven-plugin</artifactId>
133+
<version>0.7.9</version>
134+
<executions>
135+
<execution>
136+
<goals>
137+
<goal>prepare-agent</goal>
138+
</goals>
139+
</execution>
140+
<execution>
141+
<id>report</id>
142+
<phase>test</phase>
143+
<goals>
144+
<goal>report</goal>
145+
</goals>
146+
</execution>
147+
</executions>
148+
</plugin>
129149
</plugins>
130150
</build>
131151

pom.xml

+20-50
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
</reporting>
9898

9999
<build>
100+
<sourceDirectory>src/main/java</sourceDirectory>
100101
<plugins>
101102
<plugin>
102103
<groupId>org.apache.maven.plugins</groupId>
@@ -112,59 +113,28 @@
112113
<artifactId>maven-resources-plugin</artifactId>
113114
<version>2.7</version>
114115
</plugin>
116+
<plugin>
117+
<groupId>org.jacoco</groupId>
118+
<artifactId>jacoco-maven-plugin</artifactId>
119+
<version>0.7.9</version>
120+
<executions>
121+
<execution>
122+
<goals>
123+
<goal>prepare-agent</goal>
124+
</goals>
125+
</execution>
126+
<execution>
127+
<id>report</id>
128+
<phase>test</phase>
129+
<goals>
130+
<goal>report</goal>
131+
</goals>
132+
</execution>
133+
</executions>
134+
</plugin>
115135
</plugins>
116136
</build>
117137

118-
<profiles>
119-
<profile>
120-
<id>release-sign-artifacts</id>
121-
<activation>
122-
<property>
123-
<name>performRelease</name>
124-
<value>true</value>
125-
</property>
126-
</activation>
127-
<properties>
128-
<gpg.keyname>7A7DAF8A</gpg.keyname>
129-
<!-- GPG Key ID to use for signing -->
130-
<release.username>anshooarora</release.username>
131-
<!-- username for our svn repository -->
132-
</properties>
133-
<build>
134-
<resources>
135-
</resources>
136-
<plugins>
137-
<plugin>
138-
<groupId>org.apache.maven.plugins</groupId>
139-
<artifactId>maven-source-plugin</artifactId>
140-
<version>2.3</version>
141-
<executions>
142-
<execution>
143-
<id>attach-sources</id>
144-
<goals>
145-
<goal>jar</goal>
146-
</goals>
147-
</execution>
148-
</executions>
149-
</plugin>
150-
<plugin>
151-
<groupId>org.apache.maven.plugins</groupId>
152-
<artifactId>maven-javadoc-plugin</artifactId>
153-
<version>2.3</version>
154-
<executions>
155-
<execution>
156-
<id>attach-javadocs</id>
157-
<goals>
158-
<goal>jar</goal>
159-
</goals>
160-
</execution>
161-
</executions>
162-
</plugin>
163-
</plugins>
164-
</build>
165-
</profile>
166-
</profiles>
167-
168138
<distributionManagement>
169139
<snapshotRepository>
170140
<id>ossrh</id>

0 commit comments

Comments
 (0)