arditdomi 9c165b2307
Fix content unit tests executing twice (#6950)
* Run all unit test for cron jobs, fix content unit tests executing twice

* Revert execution of all unit tests on cron

* revert identation
2021-04-26 18:40:46 +01:00

17 lines
483 B
Bash
Executable File

#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../../../
AFFECTED_LIBS="$(nx affected:libs --base=$BASE_HASH --head=$HEAD_HASH --plain || exit 1)"
echo "================== AFFECTED_LIBS ${AFFECTED_LIBS} ==================="
echo "================== content-services unit ==================="
if [[ $AFFECTED_LIBS =~ "content-services" || "${TRAVIS_EVENT_TYPE}" == "push" ]];
then
ng test content-services --watch=false || exit 1;
fi;