From 81caa6b4721b2afa85a83a0f9a3fb041cd68beb3 Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Sun, 20 Jan 2019 20:26:32 -0800 Subject: Iterate over packages --- scripts/test.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index cae9381..6cbe3dc 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,7 +1,10 @@ #!/usr/bin/env bash -cd core -yarn test || exit 1 -cd ../server -yarn test || exit 1 -cd ../client -yarn test || exit 1 + +declare -a arr=("core" "client" "server") + +for i in "${arr[@]}" +do + cd $i + yarn test + cd .. +done -- cgit v1.2.3