mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
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
This commit is contained in:
@@ -4,14 +4,13 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||||||
|
|
||||||
cd $DIR/../../../
|
cd $DIR/../../../
|
||||||
|
|
||||||
ng test content-services --watch=false || exit 1;
|
AFFECTED_LIBS="$(nx affected:libs --base=$BASE_HASH --head=$HEAD_HASH --plain || exit 1)"
|
||||||
|
|
||||||
echo "================== AFFECTED_LIBS ${AFFECTED_LIBS} ==================="
|
echo "================== AFFECTED_LIBS ${AFFECTED_LIBS} ==================="
|
||||||
|
|
||||||
echo "================== content-services unit ==================="
|
echo "================== content-services unit ==================="
|
||||||
|
|
||||||
AFFECTED_LIBS="$(nx affected:libs --base=$BASE_HASH --head=$HEAD_HASH --plain || exit 1)"
|
if [[ $AFFECTED_LIBS =~ "content-services" || "${TRAVIS_EVENT_TYPE}" == "push" ]];
|
||||||
if [[ $AFFECTED_LIBS =~ "content-services" || "${TRAVIS_EVENT_TYPE}" == "push" ]];
|
|
||||||
then
|
then
|
||||||
ng test content-services --watch=false || exit 1;
|
ng test content-services --watch=false || exit 1;
|
||||||
fi;
|
fi;
|
||||||
|
Reference in New Issue
Block a user