Skip to content

Commit

Permalink
https://github.com/pendulum-chain/spacewalk/pull/552#discussion_r1784…
Browse files Browse the repository at this point in the history
…784112,

#552 (comment)
  • Loading branch information
b-yap committed Oct 3, 2024
1 parent 3a1142a commit a86a94b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
4 changes: 2 additions & 2 deletions scripts/cmd-all
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ options=$3

echo "------------------------------------------------------------------------"
echo "------------------------------------------------------------------------"
echo "Checking" $reason "on all packages"
echo "Checking $reason on all packages"
echo "------------------------------------------------------------------------"
echo "------------------------------------------------------------------------"

Expand All @@ -33,6 +33,6 @@ cargo $sub_cmd -p spacewalk-primitives --all-features $options
./scripts/cmd-others $reason $sub_cmd $options

echo "------------------------------------------------------------------------"
echo "Checks" $reason "on the vault"
echo "Checks $reason on the vault"
echo "------------------------------------------------------------------------"
cargo $sub_cmd -p vault --all-features $options
2 changes: 1 addition & 1 deletion scripts/cmd-clients
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

echo "------------------------------------------------------------------------"
echo "Checks" $1 "on packages in clients directory (except for vault)"
echo "Checks $1 on packages in clients directory (except for vault)"
echo "------------------------------------------------------------------------"
if [[ $2 == "clippy"* ]]; then
echo "------------------------------------------------------------------------"
Expand Down
4 changes: 2 additions & 2 deletions scripts/cmd-others
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
set -e

echo "------------------------------------------------------------------------"
echo "Checking" $1 "on primitives"
echo "Checking $1 on primitives"
echo "------------------------------------------------------------------------"\
cargo $2 -p spacewalk-primitives --all-features $3

if [[ $1 != "test"* ]]; then
echo "------------------------------------------------------------------------"
echo "Checks" $1 "on testchain"
echo "Checks $1 on testchain"
echo "------------------------------------------------------------------------"
cargo $2 -p spacewalk-runtime-standalone-mainnet --all-features $3
cargo $2 -p spacewalk-runtime-standalone-testnet --all-features $3
Expand Down
14 changes: 2 additions & 12 deletions scripts/cmd-pallets
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
#!/bin/bash
set -e

##### Executes the command to ALL packages of this project.
##### An exception is the package `subxt-client`, as it needs the package `runtime` for it to work.
##### The currently supported (and tested) commands are: check and clippy
##### arguments:
##### * reason = what the command is for
##### * sub_cmd = the actual sub command. For commands separated by spaces, enclose with ""
##### e.g. "build --lib"
##### "+nightly check"
##### * options = additional options of the sub command. If separated by spaces, enclose with ""
##### e.g. "-- -W clippy::all"
reason=$1
sub_cmd=$2
options=$3

echo "------------------------------------------------------------------------"
echo "Checks" $reason "on all pallets"
echo "Checks $reason on all pallets"
echo "------------------------------------------------------------------------"
cargo $sub_cmd -p clients-info --all-features $options

Expand Down Expand Up @@ -46,7 +36,7 @@ cargo $sub_cmd -p vault-registry --all-features $options

if [[ $reason != "test"* ]]; then
echo "------------------------------------------------------------------------"
echo "Checks" $reason "for pallets with rpc"
echo "Checks $reason for pallets with rpc"
echo "------------------------------------------------------------------------"
cargo $sub_cmd -p module-issue-rpc --all-features $options
cargo $sub_cmd -p module-oracle-rpc --all-features $options
Expand Down

0 comments on commit a86a94b

Please sign in to comment.