[KEYCLOAK-11079] CrossDC server tests broken on Travis

- Only run crossdc-server tests if the event type is a cron job

This change is not the definitive solution, but allows us to stabilize
the tests on master branch
This commit is contained in:
Bruno Oliveira da Silva 2019-08-14 12:12:01 -03:00
parent 67df6d03af
commit c158105e2e

View file

@ -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'