Skip to content

Commit 04b8cd3

Browse files
committed
pom.xml: coverage has separate mvn profile
1 parent 758cc33 commit 04b8cd3

File tree

2 files changed

+26
-21
lines changed

2 files changed

+26
-21
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jdk:
44
install: mvn install -P !build-extras -DskipTests=true -Dmaven.javadoc.skip=true -B -V
55
script: mvn test -P !build-extras -B
66
after_success:
7-
- mvn clean test jacoco:report coveralls:report
7+
- mvn clean test jacoco:report coveralls:report -P record-coverage,!build-extras -B
88
- ./src/main/deploy/before-deploy.sh
99
- ./src/main/deploy/deploy.sh
1010
cache:

pom.xml

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -136,26 +136,6 @@
136136
</execution>
137137
</executions>
138138
</plugin>
139-
140-
<!-- coverage -->
141-
<plugin>
142-
<groupId>org.eluder.coveralls</groupId>
143-
<artifactId>coveralls-maven-plugin</artifactId>
144-
<version>3.0.1</version>
145-
</plugin>
146-
<plugin>
147-
<groupId>org.jacoco</groupId>
148-
<artifactId>jacoco-maven-plugin</artifactId>
149-
<version>0.7.2.201409121644</version>
150-
<executions>
151-
<execution>
152-
<id>prepare-agent</id>
153-
<goals>
154-
<goal>prepare-agent</goal>
155-
</goals>
156-
</execution>
157-
</executions>
158-
</plugin>
159139

160140
<!-- deployment -->
161141
<plugin>
@@ -173,6 +153,31 @@
173153
</build>
174154

175155
<profiles>
156+
<profile>
157+
<id>record-coverage</id>
158+
<build>
159+
<plugins>
160+
<plugin>
161+
<groupId>org.eluder.coveralls</groupId>
162+
<artifactId>coveralls-maven-plugin</artifactId>
163+
<version>3.0.1</version>
164+
</plugin>
165+
<plugin>
166+
<groupId>org.jacoco</groupId>
167+
<artifactId>jacoco-maven-plugin</artifactId>
168+
<version>0.7.2.201409121644</version>
169+
<executions>
170+
<execution>
171+
<id>prepare-agent</id>
172+
<goals>
173+
<goal>prepare-agent</goal>
174+
</goals>
175+
</execution>
176+
</executions>
177+
</plugin>
178+
</plugins>
179+
</build>
180+
</profile>
176181
<profile>
177182
<id>build-extras</id>
178183
<activation>

0 commit comments

Comments
 (0)