Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Collect all failing runtime checks and print them together
  • Loading branch information
cecton committed Jul 22, 2020
commit b687b142bfac167f2026842852cc9dd9714e0c37
35 changes: 21 additions & 14 deletions scripts/gitlab/check_runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ then

fi

failed_runtime_checks=()

# Iterate over each runtime defined at the start of the script
for RUNTIME in "${runtimes[@]}"
do
Expand Down Expand Up @@ -204,24 +206,29 @@ do
continue
fi

failed_runtime_checks+=($RUNTIME)
fi
done

boldcat <<-EOT
wasm source files changed or the spec version in the substrate reference in
the Cargo.lock but not the spec/impl version. If changes made do not alter
logic, just bump 'impl_version'. If they do change logic, bump
'spec_version'.
if [ ${#failed_runtime_checks} -gt 0 ]; then
boldcat <<-EOT
wasm source files changed or the spec version in the substrate reference in
the Cargo.lock but not the spec/impl version. If changes made do not alter
logic, just bump 'impl_version'. If they do change logic, bump
'spec_version'.

source file directories:
- runtime
source file directories:
- runtime

versions file: ${VERSIONS_FILE}
version files:
EOT

EOT
for RUNTIME in "${failed_runtime_checks[@]}"
do
boldprint "- $RUNTIME"
done

exit 1
fi
done
exit 1
fi

exit 0

# vim: noexpandtab