From 33e81580c8f366729ed55e244416d8d644d4c307 Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Thu, 13 Dec 2018 09:59:08 +0100 Subject: [PATCH 1/3] Disables update-impact plugin --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 024954be1..eb329030a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ jdk: - oraclejdk11 install: true -script: ./mvnw test -DskipAssembly -Dupdate-impact +script: ./mvnw test -DskipAssembly after_success: # TODO delete following if statement after fix of https://github.com/cobertura/cobertura/issues/271 From 300ce9020e96bd12400db41224a264cb8a28100c Mon Sep 17 00:00:00 2001 From: Yasser Zamani Date: Thu, 13 Dec 2018 21:25:26 +0330 Subject: [PATCH 2/3] 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 From d31b89eabb0b65e835b62c3485d0e57752c2e89b Mon Sep 17 00:00:00 2001 From: Yasser Zamani Date: Thu, 13 Dec 2018 21:29:36 +0330 Subject: [PATCH 3/3] fix update-impact plugin for Pull Requests if statement See also: https://docs.travis-ci.com/user/environment-variables/#convenience-variables --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bb61d0916..b25621abb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ jdk: install: true script: - - if [ "$TRAVIS_PULL_REQUEST" == "true" ]; then + - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then ./mvnw test -DskipAssembly; else ./mvnw test -DskipAssembly -Dupdate-impact;