-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
68 lines (56 loc) · 1.55 KB
/
Copy pathjustfile
File metadata and controls
68 lines (56 loc) · 1.55 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
set shell := ["sh", "-eu", "-c"]
default:
just --list
fmt:
moon fmt
update-deps:
moon update
awk ' \
$1 == "import" && $2 == "{" { in_import = 1; next } \
in_import && $1 == "}" { in_import = 0; next } \
in_import { \
gsub(/[",]/, "", $1); \
sub(/@.*/, "", $1); \
if ($1 != "") print $1; \
} \
' moon.mod | while IFS= read -r dep; do \
moon add --upgrade --no-update "$dep"; \
done
moon build
build:
moon build
check:
moon check
check-all:
moon check --target all
test:
moon test
test-coverage:
moon clean
moon coverage clean
moon test --enable-coverage
if moon coverage report -f summary > coverage_summary.txt 2>/dev/null; then \
moon coverage report -f html 2>/dev/null; \
else \
printf '%s\n' "coverage report generation failed with the current MoonBit toolchain" > coverage_summary.txt; \
printf '%s\n' "warning: moon coverage report failed; tests still passed" >&2; \
fi
info:
moon info
tree:
moon tree
ready:
moon fmt
moon check
moon info
moon clean
moon coverage clean
moon test --enable-coverage
if moon coverage report -f summary > coverage_summary.txt 2>/dev/null; then \
moon coverage report -f html 2>/dev/null; \
else \
printf '%s\n' "coverage report generation failed with the current MoonBit toolchain" > coverage_summary.txt; \
printf '%s\n' "warning: moon coverage report failed; tests still passed" >&2; \
fi
publish-dry-run:
moon package --frozen