-
Notifications
You must be signed in to change notification settings - Fork 12
/
ci.sh
executable file
·34 lines (28 loc) · 1.01 KB
/
ci.sh
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
#!/bin/bash
set -e
features=(
"simulator,tokio"
"usb"
"wasm"
"multithreaded,usb"
)
examples=(
"--example singlethreaded --features=usb,tokio/rt,tokio/macros"
"--example multithreaded --features=usb,tokio/rt,tokio/macros,tokio/rt-multi-thread,multithreaded"
" --example btc_signtx --features=usb,tokio/rt,tokio/macros"
"--example btc_sign_psbt --features=usb,tokio/rt,tokio/macros"
"--example btc_sign_msg --features=usb,tokio/rt,tokio/macros"
"--example btc_miniscript --features=usb,tokio/rt,tokio/macros"
"--example eth --features=usb,tokio/rt,tokio/macros,rlp"
"--example cardano --features=usb,tokio/rt,tokio/macros"
)
cargo fmt --check
for feature_set in "${features[@]}"; do
echo $feature_set
cargo test --tests --locked --features="$feature_set" -- --nocapture
cargo clippy --tests --locked --features="$feature_set" -- -D warnings -A clippy::empty-docs
done
for example in "${examples[@]}"; do
cargo test $example
cargo clippy $example -- -D warnings -A clippy::empty-docs
done