diff --git a/ci/run-check.sh b/ci/run-check.sh index a44a0eb3d0..6aa8d43863 100755 --- a/ci/run-check.sh +++ b/ci/run-check.sh @@ -9,70 +9,73 @@ rustup --version cargo --version case $TARGET in - cargo-build) - cargo build -p centrifuge-chain --release "$@" - ;; - - test-general) - cargo test --workspace --release --features runtime-benchmarks,try-runtime --exclude runtime-integration-tests - ;; +# cargo-build) +# cargo build -p centrifuge-chain --release "$@" +# ;; +# +# test-general) +# cargo test --workspace --release --features runtime-benchmarks,try-runtime --exclude runtime-integration-tests +# ;; test-integration) + # TODO: Remove before merging PR + rm -rf target/debug/deps/runtime_integration_tests-* + rm -rf target/debug/build/runtime-integration* cargo test --release --package runtime-integration-tests --features fast-runtime ;; - lint-fmt) - cargo fmt -- --check - ;; - - lint-taplo) - cargo install taplo-cli --locked - taplo fmt --check - ;; - - lint-clippy) - cargo clippy -- -D warnings -A clippy::unnecessary-cast -A clippy::bool-to-int-with-if - ;; - - benchmark-check) - ./scripts/check_benchmarks.sh $RUNTIME - ;; - - docs-build) - RUSTDOCFLAGS="-D warnings" cargo doc --all --no-deps - ;; - - try-runtime) - if [ "$1" == "altair" ]; then - echo "Running try-runtime for altair" - RUST_LOG=runtime=trace,try-runtime::cli=trace,executor=trace \ - cargo run --release --features try-runtime try-runtime \ - --runtime target/release/wbuild/altair-runtime/altair_runtime.wasm \ - --chain altair on-runtime-upgrade live \ - --uri wss://fullnode.altair.centrifuge.io:443 - elif [ "$1" == "centrifuge" ]; then - echo "Running try-runtime for centrifuge" - RUST_LOG=runtime=trace,try-runtime::cli=trace,executor=trace \ - cargo run --release --features try-runtime try-runtime \ - --runtime target/release/wbuild/centrifuge-runtime/centrifuge_runtime.wasm \ - --chain centrifuge on-runtime-upgrade live --uri wss://fullnode.centrifuge.io:443 - else - echo "Invalid argument. Please specify 'altair' or 'centrifuge'." - exit 1 - fi - ;; - subalfred) - # Find all child directories containing Cargo.toml files - # TODO: Filter by crates found in the workspace - # HINT: Use `cargo workspaces list -l" and filter by the paths - dirs=$(find . -name Cargo.toml -print0 | xargs -0 -n1 dirname | sort -u) - - # Execute the command "subalfred check" on each directory - for dir in $dirs; do - # Avoiding cargo workspace - if [[ "$dir" == "." ]]; then - continue - fi - subalfred check features $dir - done +# lint-fmt) +# cargo fmt -- --check +# ;; +# +# lint-taplo) +# cargo install taplo-cli --locked +# taplo fmt --check +# ;; +# +# lint-clippy) +# cargo clippy -- -D warnings -A clippy::unnecessary-cast -A clippy::bool-to-int-with-if +# ;; +# +# benchmark-check) +# ./scripts/check_benchmarks.sh $RUNTIME +# ;; +# +# docs-build) +# RUSTDOCFLAGS="-D warnings" cargo doc --all --no-deps +# ;; +# +# try-runtime) +# if [ "$1" == "altair" ]; then +# echo "Running try-runtime for altair" +# RUST_LOG=runtime=trace,try-runtime::cli=trace,executor=trace \ +# cargo run --release --features try-runtime try-runtime \ +# --runtime target/release/wbuild/altair-runtime/altair_runtime.wasm \ +# --chain altair on-runtime-upgrade live \ +# --uri wss://fullnode.altair.centrifuge.io:443 +# elif [ "$1" == "centrifuge" ]; then +# echo "Running try-runtime for centrifuge" +# RUST_LOG=runtime=trace,try-runtime::cli=trace,executor=trace \ +# cargo run --release --features try-runtime try-runtime \ +# --runtime target/release/wbuild/centrifuge-runtime/centrifuge_runtime.wasm \ +# --chain centrifuge on-runtime-upgrade live --uri wss://fullnode.centrifuge.io:443 +# else +# echo "Invalid argument. Please specify 'altair' or 'centrifuge'." +# exit 1 +# fi +# ;; +# subalfred) +# # Find all child directories containing Cargo.toml files +# # TODO: Filter by crates found in the workspace +# # HINT: Use `cargo workspaces list -l" and filter by the paths +# dirs=$(find . -name Cargo.toml -print0 | xargs -0 -n1 dirname | sort -u) +# +# # Execute the command "subalfred check" on each directory +# for dir in $dirs; do +# # Avoiding cargo workspace +# if [[ "$dir" == "." ]]; then +# continue +# fi +# subalfred check features $dir +# done esac