Skip to content

Commit 245f64d

Browse files
authored
Removing redundant lines from POM; Implemented a mechanism to skip integration tests during release:perform (they are executed once in release:prepare) (firebase#16)
1 parent b988d7a commit 245f64d

2 files changed

Lines changed: 10 additions & 16 deletions

File tree

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ The above command invokes both unit and integration test suites. To execute only
128128
tests, run the command as follows:
129129

130130
```
131-
mvn verify -Dfirebase.it.certificate=path/to/your/serviceAccount.json -Dskip.surefire.tests=true
131+
mvn verify -Dfirebase.it.certificate=path/to/your/serviceAccount.json -DskipUTs
132132
```
133133

134134
### Generating API Docs

pom.xml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@
4242
<properties>
4343
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4444
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
45+
<skipUTs>${skipTests}</skipUTs>
4546
</properties>
4647

4748
<scm>
4849
<connection>scm:git:https://github.com/firebase/firebase-admin-java.git</connection>
4950
<developerConnection>scm:git:ssh://[email protected]/firebase/firebase-admin-java.git</developerConnection>
5051
<url>http://github.com/firebase/firebase-admin-java</url>
51-
<tag>HEAD</tag>
52-
</scm>
52+
<tag>HEAD</tag>
53+
</scm>
5354

5455
<distributionManagement>
5556
<snapshotRepository>
@@ -80,7 +81,6 @@
8081
<plugins>
8182
<plugin>
8283
<!-- Generate API docs using Doclava for the developer site -->
83-
<groupId>org.apache.maven.plugins</groupId>
8484
<artifactId>maven-javadoc-plugin</artifactId>
8585
<executions>
8686
<execution>
@@ -137,11 +137,13 @@
137137
</profile>
138138
<profile>
139139
<id>release</id>
140+
<properties>
141+
<!-- Prevent executing integration tests twice during a release -->
142+
<skipITs>true</skipITs>
143+
</properties>
140144
<build>
141145
<plugins>
142146
<plugin>
143-
<!-- Generate API docs using Doclava for the developer site -->
144-
<groupId>org.apache.maven.plugins</groupId>
145147
<artifactId>maven-javadoc-plugin</artifactId>
146148
<executions>
147149
<execution>
@@ -167,11 +169,11 @@
167169
</configuration>
168170
</plugin>
169171
<plugin>
170-
<groupId>org.apache.maven.plugins</groupId>
171172
<artifactId>maven-source-plugin</artifactId>
172173
<version>2.2.1</version>
173174
<configuration>
174175
<excludes>
176+
<!-- Exclude all files until we go open source -->
175177
<exclude>com/**</exclude>
176178
</excludes>
177179
</configuration>
@@ -185,7 +187,6 @@
185187
</executions>
186188
</plugin>
187189
<plugin>
188-
<groupId>org.apache.maven.plugins</groupId>
189190
<artifactId>maven-gpg-plugin</artifactId>
190191
<version>1.5</version>
191192
<executions>
@@ -243,17 +244,12 @@
243244
<artifactId>maven-surefire-plugin</artifactId>
244245
<version>2.19.1</version>
245246
<configuration>
246-
<skipTests>${skip.surefire.tests}</skipTests>
247+
<skipTests>${skipUTs}</skipTests>
247248
</configuration>
248249
</plugin>
249250
<plugin>
250251
<artifactId>maven-failsafe-plugin</artifactId>
251252
<version>2.19.1</version>
252-
<configuration>
253-
<includes>
254-
<include>**/*IT.java</include>
255-
</includes>
256-
</configuration>
257253
<executions>
258254
<execution>
259255
<goals>
@@ -264,12 +260,10 @@
264260
</executions>
265261
</plugin>
266262
<plugin>
267-
<groupId>org.apache.maven.plugins</groupId>
268263
<artifactId>maven-javadoc-plugin</artifactId>
269264
<version>2.10.4</version>
270265
</plugin>
271266
<plugin>
272-
<groupId>org.apache.maven.plugins</groupId>
273267
<artifactId>maven-release-plugin</artifactId>
274268
<version>2.5.3</version>
275269
<configuration>

0 commit comments

Comments
 (0)