diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-01-20 20:26:32 -0800 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-01-20 20:26:32 -0800 |
commit | 81caa6b4721b2afa85a83a0f9a3fb041cd68beb3 (patch) | |
tree | 07300fe47e5243ef3586f1b20534bfdeb82b20f2 /scripts/test.sh | |
parent | 46939afad0fb5a781f4002bccc690e7ec1e54aa7 (diff) |
Iterate over packages
Diffstat (limited to 'scripts/test.sh')
-rwxr-xr-x | scripts/test.sh | 15 |
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 |