From dd19c687fada58e447d33f71417ef2a1d8acd933 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira da Silva Date: Thu, 15 Aug 2019 11:45:32 -0300 Subject: [PATCH] [KEYCLOAK-11079] CrossDC server tests broken on Travis - Only run crossdc-server tests if the event type is a cron job - Fix for string comparison on Travis script This change is not the definitive solution, but allows us to stabilize the tests on master branch --- travis-run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis-run-tests.sh b/travis-run-tests.sh index b853dace79..ab5e30a584 100755 --- a/travis-run-tests.sh +++ b/travis-run-tests.sh @@ -29,7 +29,7 @@ function should-tests-run() { function should-tests-run-crossdc-server() { # If this is not a pull request, it is build as a branch update. In that case test everything - [ "$TRAVIS_PULL_REQUEST" = "false" ] && return 0 + [ "$TRAVIS_EVENT_TYPE" == "cron" ] && return 0 git diff --name-only HEAD origin/${TRAVIS_BRANCH} | egrep -i 'crossdc|infinispan'