ethers-rs/scripts/examples.sh

26 lines
565 B
Bash
Raw Permalink Normal View History

set -e
# shellcheck shell=bash
# examples that we can't run because they require some additional infra, docker or ledger for example
ignored=(
"moonbeam_with_abi"
"ipc"
"ledger"
"paginated_logs"
"subscribe_logs"
"trezor"
"yubi"
"remove_liquidty"
)
# run all examples
for file in examples/*.rs; do
name="$(echo "$file" | cut -f 1 -d '.')"
if [[ "${ignored[*]}" =~ $(basename "$name") ]]; then
echo "skipping: $file"
continue
fi
echo "running: $file"
cargo r -p ethers --example "$(basename "$name")" --features "ethers-solc"
done