From 5dac8cbe2e5d8a03fa33d7f5af23aeab4551c2f4 Mon Sep 17 00:00:00 2001 From: Maurizio Vitale Date: Fri, 30 Sep 2022 15:58:46 +0200 Subject: [PATCH] Return exit 0 in case of cron (#7871) --- scripts/travis/affected-contains.sh | 1 + scripts/travis/e2e/e2e.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/scripts/travis/affected-contains.sh b/scripts/travis/affected-contains.sh index 4dc2d92ead..2b55e9e98b 100755 --- a/scripts/travis/affected-contains.sh +++ b/scripts/travis/affected-contains.sh @@ -7,6 +7,7 @@ cd $DIR/../../ if [ "${TRAVIS_EVENT_TYPE}" == "cron" ]; then #echo "Affected not check in case of cron" echo true + exit 0 fi AFFECTED_LIBS="$(nx print-affected --type=lib --select=projects --base=$BASE_HASH --head=$HEAD_HASH --plain)" #echo "Verify if affected build contains $1" diff --git a/scripts/travis/e2e/e2e.sh b/scripts/travis/e2e/e2e.sh index da37bdd00e..6646348422 100755 --- a/scripts/travis/e2e/e2e.sh +++ b/scripts/travis/e2e/e2e.sh @@ -23,6 +23,10 @@ if [ ${AFFECTED_LIB} == true ]; then echo "Affected e2e ${AFFECTED_E2E}" fi; + if [ "${TRAVIS_EVENT_TYPE}" == "cron" ]; then + echo "CRON running everything " + fi; + if [[ $AFFECTED_LIBS =~ "testing" || $AFFECTED_LIBS =~ "$BASE_DIRECTORY" || "${TRAVIS_EVENT_TYPE}" == "push" || "${TRAVIS_EVENT_TYPE}" == "api" || "${TRAVIS_EVENT_TYPE}" == "cron" ]]; then echo "Run all e2e $FOLDER" ./scripts/test-e2e-lib.sh --use-dist