From db939a1d3d82b2667c516456145bab8c801f8225 Mon Sep 17 00:00:00 2001 From: Simon Urli Date: Thu, 5 Apr 2018 10:13:18 +0200 Subject: [PATCH] Only check last job on master --- chore/travis/travis-jdk9-other-seed.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chore/travis/travis-jdk9-other-seed.sh b/chore/travis/travis-jdk9-other-seed.sh index 42fa3115bc7..dbef3057b6d 100755 --- a/chore/travis/travis-jdk9-other-seed.sh +++ b/chore/travis/travis-jdk9-other-seed.sh @@ -2,7 +2,7 @@ # This script intends to be run on TravisCI # It executes compile and test goals - -source /opt/jdk_switcher/jdk_switcher.sh - -jdk_switcher use oraclejdk9 && SPOON_SEED_CU_COMPARATOR=$(( ( RANDOM % 10 ) + 1 )) mvn -Djava.src.version=1.9 test \ No newline at end of file +if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then + source /opt/jdk_switcher/jdk_switcher.sh + jdk_switcher use oraclejdk9 && SPOON_SEED_CU_COMPARATOR=$(( ( RANDOM % 10 ) + 1 )) mvn -Djava.src.version=1.9 test +fi \ No newline at end of file