-
Notifications
You must be signed in to change notification settings - Fork 4
/
.mise.toml
67 lines (55 loc) · 1.42 KB
/
.mise.toml
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
[tools]
"cargo:cargo-tarpaulin" = "0.27.3"
"cargo:git-cliff" = "1.4.0"
"cargo:cargo-release" = "0.25.4"
[tasks.changelog]
description = "Generate changelog"
run = "git cliff -o CHANGELOG.md"
[tasks.coverage]
description = "Run tests with coverage"
run = [
"cargo clippy -- -D warnings",
"cargo fmt -- --check",
"cargo tarpaulin --lib --tests"
]
[tasks."recordings input"]
description = "Create recordings with vhs"
run = """
#!/usr/bin/env bash
if ! docker info > /dev/null 2>&1; then
echo "This script uses docker, and it isn't running - please start docker and try again!"
exit 1
fi
vhs() {
docker run --rm -v $(pwd):/data -w /data ghcr.io/charmbracelet/vhs "$@"
}
# Create VHS recordings of all tape files in the assets directory
for i in $(ls -1 assets/*.tape); do
vhs $i
done
"""
[tasks."recordings themes"]
description = "Create theme recordings with vhs"
run = """
#!/usr/bin/env bash
if ! docker info > /dev/null 2>&1; then
echo "This script uses docker, and it isn't running - please start docker and try again!"
exit 1
fi
vhs() {
docker run --rm -v $(pwd):/data -w /data ghcr.io/charmbracelet/vhs "$@"
}
# Create VHS recordings of all tape files in the themes directory
for i in $(ls -1 assets/themes/*.tape); do
vhs $i
done
"""
[tasks.tests]
description = "Run tests"
run = [
"cargo clippy -- -D warnings",
"cargo fmt -- --check",
"cargo test --lib --tests"
]
[tasks.release]
run = 'cargo release'