From 300ce9020e96bd12400db41224a264cb8a28100c Mon Sep 17 00:00:00 2001 From: Yasser Zamani Date: Thu, 13 Dec 2018 21:25:26 +0330 Subject: [PATCH] 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 eb329030a..bb61d0916 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