forked from Oppzippy/OpenSCQ30
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
79 lines (63 loc) · 2.03 KB
/
justfile
File metadata and controls
79 lines (63 loc) · 2.03 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
mod android
mod cli
mod gui
mod i18n
mod i18n-macros
mod lib
mod lib-macros
mod lib-has
set unstable := true
fdfind := if which("fdfind") == "" { "fd" } else { "fdfind" }
default:
@just --choose
build profile='dev':
just gui/ build '{{ profile }}'
just cli/ build '{{ profile }}'
just android/ build '{{ profile }}'
test: lib::test cli::test gui::test android::test
test-cov: lib::test-cov cli::test-cov gui::test-cov android::test-cov
llvm-cov-clean:
cargo llvm-cov clean --workspace
test-cov-report format='lcov':
#!/usr/bin/env bash
set -euo pipefail
case '{{format}}' in
lcov)
format_args="--lcov --output-path lcov.info"
;;
html)
format_args="--html"
;;
*)
echo Invalid format
exit 1
;;
esac
cargo llvm-cov report $format_args
install path:
just gui/ install '{{ path }}'
just cli/ install '{{ path }}'
uninstall path:
just gui/ uninstall '{{ path }}'
just cli/ uninstall '{{ path }}'
alias fmt := format
[parallel]
format: android::format cli::format gui::format i18n::format i18n-macros::format lib::format lib-macros::format lib-has::format format-docs
format-docs:
#!/usr/bin/env bash
if command -v prettier > /dev/null; then
prettier --write README.md CHANGELOG.md ROADMAP.md docs/*.md tools/soundcore-device-faker/README.md
else
echo "Prettier not installed, skipping markdown formatting"
fi
[parallel]
format-check: android::format-check cli::format-check gui::format-check i18n::format-check i18n-macros::format-check lib::format-check lib-macros::format-check lib-has::format-check format-check-docs
format-check-docs:
#!/usr/bin/env bash
if command -v prettier > /dev/null; then
prettier --check README.md CHANGELOG.md ROADMAP.md docs/*.md tools/soundcore-device-faker/README.md
else
echo "Prettier not installed, skipping markdown format check"
fi
shellcheck:
{{fdfind}} --type file --extension sh --exec shellcheck {}