summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2019-01-20 20:26:32 -0800
committerNick Van Doorn <vandoorn.nick@gmail.com>2019-01-20 20:26:32 -0800
commit81caa6b4721b2afa85a83a0f9a3fb041cd68beb3 (patch)
tree07300fe47e5243ef3586f1b20534bfdeb82b20f2
parent46939afad0fb5a781f4002bccc690e7ec1e54aa7 (diff)
Iterate over packages
-rwxr-xr-xscripts/test.sh15
1 files 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