KEYCLOAK-4407 Execute cross-dc tests selectively in travis

This commit is contained in:
Hynek Mlnarik 2018-07-30 13:00:44 +02:00 committed by Hynek Mlnařík
parent 9b0930a289
commit 7a978ff3f6

View file

@ -25,7 +25,7 @@ function should-tests-run() {
## You can define a precondition for running a particular test group by defining function should-tests-run-<test-group-name>.
## Its return value determines whether the test group should run.
function should-tests-run-crossdc() {
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
@ -33,6 +33,10 @@ function should-tests-run-crossdc() {
egrep -i 'crossdc|infinispan'
}
function should-tests-run-crossdc-adapter() {
should-tests-run-crossdc-server
}
if ! should-tests-run; then
echo "Skipping all tests (including group '$1')"
exit 0