[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
This commit is contained in:
Bruno Oliveira da Silva 2019-08-15 11:45:32 -03:00
parent 1454d73c35
commit dd19c687fa

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'