-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·34 lines (26 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
32
33
34
#!/bin/sh
set -e
./check_all.py -d roblib default all async gpio roland camloc gpio-backend
./check_all.py -d roblib-server default all backend roland gpio camloc
./check_all.py -d roblib-client default all async roland gpio camloc tcp udp http ws
./check_all.py -de roblib-client default all async roland gpio camloc tcp udp http ws
[ -n "$GITHUB_ACTIONS" ] && echo "##[group]roblib-macro"
cargo clippy -p roblib-macro 2>&1
[ -n "$GITHUB_ACTIONS" ] && echo "##[endgroup]"
[ -n "$GITHUB_ACTIONS" ] && echo "##[group]node-ffi"
cargo clippy -p kareszklub_roblib-client-node 2>&1
[ -n "$GITHUB_ACTIONS" ] && echo "##[endgroup]"
[ -n "$GITHUB_ACTIONS" ] && echo "##[group]encoder-wasm"
cargo clippy -p roblib-encoder-wasm 2>&1
[ -n "$GITHUB_ACTIONS" ] && echo "##[endgroup]"
# test runs
[ -n "$GITHUB_ACTIONS" ] && echo "##[group]test: roblib"
cargo test --all-features -p roblib 2>&1
[ -n "$GITHUB_ACTIONS" ] && echo "##[endgroup]"
[ -n "$GITHUB_ACTIONS" ] && echo "##[group]test: roblib-server"
cargo test --all-features -p roblib-server 2>&1
[ -n "$GITHUB_ACTIONS" ] && echo "##[endgroup]"
[ -n "$GITHUB_ACTIONS" ] && echo "##[group]test: roblib-client"
cargo test --all-features -p roblib-client 2>&1
[ -n "$GITHUB_ACTIONS" ] && echo "##[endgroup]"
exit 0