Correctly fail CI on JS failures

This commit is contained in:
Michael Vines 2020-08-24 10:18:38 -07:00
parent b1bd204fbe
commit dc00c83c34
1 changed files with 22 additions and 28 deletions

View File

@ -66,41 +66,35 @@ done
# Test token js bindings # Test token js bindings
js_token() { js_token() {
(
set -x
cd token/js cd token/js
time npm install time npm install || exit $?
time npm run lint time npm run lint || exit $?
time npm run flow time npm run flow || exit $?
tsc module.d.ts tsc module.d.ts || exit $?
npm run cluster:localnet npm run cluster:localnet || exit $?
npm run localnet:down npm run localnet:down
npm run localnet:update npm run localnet:update || exit $?
npm run localnet:up npm run localnet:up || exit $?
time npm run start time npm run start || exit $?
npm run localnet:down npm run localnet:down
)
} }
_ js_token _ js_token
# Test token-swap js bindings # Test token-swap js bindings
js_token_swap() { js_token_swap() {
(
set -x
cd token-swap/js cd token-swap/js
time npm install time npm install || exit $?
time npm run lint time npm run lint || exit $?
time npm run flow time npm run flow || exit $?
# TODO: Uncomment once https://github.com/solana-labs/solana/issues/11465 is resolved # TODO: Uncomment once https://github.com/solana-labs/solana/issues/11465 is resolved
# npm run cluster:localnet # npm run cluster:localnet || exit $?
# npm run localnet:down # npm run localnet:down
# npm run localnet:update # npm run localnet:update || exit $?
# npm run localnet:up # npm run localnet:up || exit $?
# npm run start # npm run start || exit $?
# npm run localnet:down # npm run localnet:down
)
} }
_ js_token_swap _ js_token_swap