mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 13:47:12 +00:00
Pull out CLI example runner
This commit is contained in:
parent
84624013a6
commit
7af702c708
@ -305,14 +305,7 @@ jobs:
|
||||
working_directory: packages/cli
|
||||
environment:
|
||||
SKIP_BUILD: 1
|
||||
command: |
|
||||
./bin/cosmwasm-cli --init examples/coralnet.ts --code "process.exit(0)"
|
||||
./bin/cosmwasm-cli --init examples/delegate.ts --code "process.exit(0)"
|
||||
./bin/cosmwasm-cli --init examples/faucet_addresses.ts --code "process.exit(0)"
|
||||
./bin/cosmwasm-cli --init examples/generate_address.ts --code "process.exit(0)"
|
||||
./bin/cosmwasm-cli --init examples/helpers.ts --code "process.exit(0)"
|
||||
./bin/cosmwasm-cli --init examples/local_faucet.ts --code "process.exit(0)"
|
||||
./bin/cosmwasm-cli --init examples/mask.ts --code "process.exit(0)"
|
||||
command: ./run_examples.sh
|
||||
- run:
|
||||
name: Stop chains
|
||||
command: |
|
||||
|
15
packages/cli/run_examples.sh
Executable file
15
packages/cli/run_examples.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
set -o errexit -o nounset -o pipefail
|
||||
command -v shellcheck >/dev/null && shellcheck "$0"
|
||||
|
||||
PATH="$(realpath ./bin):$PATH"
|
||||
|
||||
cosmwasm-cli --init examples/coralnet.ts --code "process.exit(0)"
|
||||
if [ -n "${LAUNCHPAD_ENABLED:-}" ]; then
|
||||
cosmwasm-cli --init examples/delegate.ts --code "process.exit(0)"
|
||||
fi
|
||||
cosmwasm-cli --init examples/faucet_addresses.ts --code "process.exit(0)"
|
||||
cosmwasm-cli --init examples/generate_address.ts --code "process.exit(0)"
|
||||
cosmwasm-cli --init examples/helpers.ts --code "process.exit(0)"
|
||||
cosmwasm-cli --init examples/local_faucet.ts --code "process.exit(0)"
|
||||
cosmwasm-cli --init examples/mask.ts --code "process.exit(0)"
|
Loading…
x
Reference in New Issue
Block a user