-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmise.toml
68 lines (54 loc) · 1.47 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
68
[tools]
"cargo:git-cliff" = "2.7"
"cargo:cargo-release" = "0.25"
[tasks.changelog]
description = "Generate changelog"
run = "git cliff -o CHANGELOG.md"
[tasks.coverage]
tools = { "cargo-tarpaulin" = "0.27" }
depends = ["lint"]
description = "Run tests with coverage"
run = "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.test]
alias = ["t", "tests"]
depends = ["lint"]
description = "Run tests"
run = "cargo test --lib --tests"
[tasks.release]
run = 'cargo release'
[tasks.lint]
run = ["cargo clippy -- -D warnings", "cargo fmt -- --check"]
[tasks.pre-commit]
depends = ["lint"]