|
|
@ -6,17 +6,11 @@ BUILD_ID=${CIRCLE_BUILD_NUM:-${TRAVIS_JOB_NUMBER}} |
|
|
|
echo "$BUILD_ID" |
|
|
|
echo "$BUILD_ID" |
|
|
|
TEST_EXITCODE=0 |
|
|
|
TEST_EXITCODE=0 |
|
|
|
|
|
|
|
|
|
|
|
npm run build:e2e |
|
|
|
KEYS=$(jq -r '.projects | keys | map(. + ".js") ' workspace.json | tr -d '[],"') |
|
|
|
KEYS=$(jq -r '.projects | keys' workspace.json | tr -d '[],"') |
|
|
|
# add .js to all elements in array KEYS |
|
|
|
# add .js to every key |
|
|
|
|
|
|
|
KEYS=$(echo $KEYS | sed 's/\(.*\)/\1.js/') |
|
|
|
|
|
|
|
# keys to array |
|
|
|
|
|
|
|
KEYS=($KEYS) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TESTFILES=$(echo $KEYS | circleci tests split) |
|
|
|
TESTFILES=$(echo $KEYS | circleci tests split) |
|
|
|
echo $TESTFILES |
|
|
|
echo $TESTFILES |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "$TEST_EXITCODE" |
|
|
|
echo "$TEST_EXITCODE" |
|
|
|
if [ "$TEST_EXITCODE" -eq 1 ] |
|
|
|
if [ "$TEST_EXITCODE" -eq 1 ] |
|
|
|
then |
|
|
|
then |
|
|
|