burn/run-checks.sh

26 lines
831 B
Bash
Raw Permalink Normal View History

#!/bin/bash
2023-08-17 06:44:16 +08:00
# Exit immediately if a command exits with a non-zero status.
set -e
# This script runs all `burn` checks locally. It may take around 15 minutes
# on the first run.
#
# Run `run-checks` using this command:
#
2023-11-03 02:30:07 +08:00
# ./run-checks.sh environment
#
# where `environment` can assume **ONLY** the following values:
#
# - `std` to perform checks using `libstd`
# - `no-std` to perform checks on an embedded environment using `libcore`
2023-08-17 06:44:16 +08:00
# - `typos` to check for typos in the codebase
# - `examples` to check the examples compile
#
# If no `environment` value has been passed, run all checks except examples.
# Run binary passing the first input parameter, who is mandatory.
# If the input parameter is missing or wrong, it will be the `run-checks`
# binary which will be responsible of arising an error.
cargo xtask run-checks $1