This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts.git


The following commit(s) were added to refs/heads/master by this push:
     new 95eeacb  Activates update-impact plugin on JDK7
95eeacb is described below

commit 95eeacb6b467870a6bb25f49864394c3954a8074
Author: Lukasz Lenart <lukaszlen...@apache.org>
AuthorDate: Tue Dec 11 15:17:01 2018 +0100

    Activates update-impact plugin on JDK7
---
 .travis.yml |  4 ++--
 pom.xml     | 16 ++++++++++++++++
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 38e83f6..fb7423e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,12 +8,12 @@ jdk:
   - oraclejdk11
 
 install: true
-script: mvn test -DskipAssembly
+script: ./mvnw test -DskipAssembly -Dupdate-impact
 
 after_success:
   # TODO delete following if statement after fix of 
https://github.com/cobertura/cobertura/issues/271
   - if [ "$TRAVIS_JDK_VERSION" == "openjdk8" ] || [ "$TRAVIS_JDK_VERSION" == 
"oraclejdk8" ]; then
-      mvn cobertura:cobertura 
org.eluder.coveralls:coveralls-maven-plugin:report 
com.updateimpact:updateimpact-maven-plugin:submit 
-Ptravis-coveralls,update-impact -DskipAssembly;
+      mvn cobertura:cobertura 
org.eluder.coveralls:coveralls-maven-plugin:report -Ptravis-coveralls 
-DskipAssembly;
     else
       echo "Not reporting coverage for $TRAVIS_JDK_VERSION due to 
incompatibility or to save performance";
     fi;
diff --git a/pom.xml b/pom.xml
index 4dc3e81..abd6edd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -111,6 +111,7 @@
         <!-- Sonar -->
         <sonar.host.url>https://builds.apache.org/analysis/</sonar.host.url>
         <maven-surefire-plugin.version>2.22.1</maven-surefire-plugin.version>
+        <travis.ci>${env.TRAVIS}</travis.ci>
     </properties>
 
     <profiles>
@@ -213,14 +214,29 @@
         </profile>
         <profile>
             <id>update-impact</id>
+            <activation>
+                <jdk>1.7</jdk>
+                <property>
+                    <name>update-impact</name>
+                </property>
+            </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>com.updateimpact</groupId>
                         <artifactId>updateimpact-maven-plugin</artifactId>
                         <version>1.0.12</version>
+                        <executions>
+                            <execution>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>submit</goal>
+                                </goals>
+                            </execution>
+                        </executions>
                     </plugin>
                 </plugins>
+                
             </build>
         </profile>
     </profiles>

Reply via email to