arditdomi 2d257ea092
[ACA-4306] Testing - Add form widget ids in the SIMPLEAPP resources file (#6806)
* [ACA-4306] Testing - Add form widget ids in the SIMPLEAPP resources file

* downgrade nrwl workspace version

* Use the PR branch name and terminate

* Handle the error

* Revert downgrade nrwl workspace

* Remove the useless check on rebase and raise the exit 1

* Remove the script

* Use the HEAD and create a new variable for commit sha

Co-authored-by: Maurizio Vitale <maurizio.vitale@alfresco.com>
2021-03-22 17:44:55 +00:00

27 lines
749 B
Bash
Executable File

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