-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcmd-all
executable file
·38 lines (31 loc) · 1.48 KB
/
cmd-all
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/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 "------------------------------------------------------------------------"
echo "Checking $reason on all packages"
echo "------------------------------------------------------------------------"
echo "------------------------------------------------------------------------"
cargo $sub_cmd -p spacewalk-primitives --all-features $options
# run the pallets
./scripts/cmd-pallets "$reason" "$sub_cmd" "$options"
# run the clients
./scripts/cmd-clients "$reason" "$sub_cmd" "$options"
# run the others
./scripts/cmd-others $reason $sub_cmd $options
echo "------------------------------------------------------------------------"
echo "Checks $reason on the vault"
echo "------------------------------------------------------------------------"
cargo $sub_cmd -p vault --all-features $options