-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·31 lines (25 loc) · 1.23 KB
/
test.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
#!/bin/bash
set -e
export TERM=xterm-256color
# Statements waiting to be executed
statements=(
"cargo clippy --no-default-features -- -D warnings"
"cargo clippy --no-default-features --features persist -- -D warnings"
"cargo clippy --no-default-features --features secret,mock -- -D warnings"
"cargo clippy --no-default-features --features secret,mock,derive -- -D warnings"
"cargo clippy --no-default-features --features full,mock -- -D warnings"
"cargo test --no-default-features --features derive"
"cargo test --no-default-features --features derive,persist"
"cargo test --no-default-features --features derive,persist,default_config_dir"
"cargo test --no-default-features --features derive,persist,secret,mock"
"cargo test --no-default-features --features derive,persist,secret,mock,default_config_dir"
"cargo run --example example --no-default-features --features full,mock"
"cargo run --example example --no-default-features --features full,mock,default_config_dir"
"cargo doc --no-deps --no-default-features --features full,mock"
)
# loop echo and executing statements
for statement in "${statements[@]}"; do
echo "$(tput setaf 3)$statement$(tput sgr0)"
eval $statement
echo
done