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

yasserzamani 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 300ce90  disable update-impact plugin for Pull Requests
300ce90 is described below

commit 300ce9020e96bd12400db41224a264cb8a28100c
Author: Yasser Zamani <yasserzam...@apache.org>
AuthorDate: Thu Dec 13 21:25:26 2018 +0330

    disable update-impact plugin for Pull Requests
    
    See also: 
https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions
---
 .travis.yml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index eb32903..bb61d09 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,8 +8,12 @@ jdk:
   - oraclejdk11
 
 install: true
-script: ./mvnw test -DskipAssembly
-
+script:
+   - if [ "$TRAVIS_PULL_REQUEST" == "true" ]; then
+      ./mvnw test -DskipAssembly;
+    else
+      ./mvnw test -DskipAssembly -Dupdate-impact;
+    fi;
 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

Reply via email to