openethereum/scripts/actions/validate-chainspecs.sh
Adria Massanet 814526a248 Fix CI
2021-01-14 15:30:57 +01:00

22 lines
549 B
Bash
Executable File

#!/bin/bash
set -e # fail on any error
set -u # treat unset variables as error
echo "________Running validate_chainspecs.sh________"
ERR=0
echo "________Validate chainspecs________"
time cargo build --release -p chainspec --verbose --color=always
for spec in crates/ethcore/res/chainspec/*.json; do
if ! ./target/release/chainspec "$spec"; then ERR=1; fi
done
for spec in crates/ethcore/res/chainspec/test/*.json; do
if ! ./target/release/chainspec "$spec"; then ERR=1; fi
done
#show sccache statistics
#sccache --stop-server
exit $ERR