diff --git a/scripts/travis/affected-contains.sh b/scripts/travis/affected-contains.sh index d5be89de3f8..6febf33b7e3 100755 --- a/scripts/travis/affected-contains.sh +++ b/scripts/travis/affected-contains.sh @@ -4,6 +4,10 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" verifyLib=$1; cd $DIR/../../ +if [ "${TRAVIS_EVENT_TYPE}" == "cron" ]; then + echo "Affected not check in case of cron" + exit 0 +fi AFFECTED_LIBS="$(nx print-affected --type=lib --select=projects --base=$BASE_HASH --head=$HEAD_HASH --plain || exit 1)" echo "Verify if affected build contains $1"