-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
69 lines (57 loc) · 1.24 KB
/
Makefile.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
69
[tasks.clean]
command = "cargo"
args = ["clean"]
[tasks.prebuild]
command = "python3"
# Removing --copy_db is considered a breaking change for the app
args = ["setup.py", "--copy_db", "--overwrite", "--db_version", "2.4.0"]
[tasks.post_build]
command = "python3"
args = ["post_build.py"]
[tasks.format]
install_crate = "rustfmt"
command = "cargo"
args = ["fmt"]
[tasks.lint]
command = "cargo"
args = ["clippy", "--all-targets", "--all-features"]
dependencies = ["clean", "prebuild"]
[tasks.build]
command = "cargo"
args = ["build"]
dependencies = ["clean", "prebuild"]
[tasks.build-release]
command = "cargo"
args = ["build", "--release"]
dependencies = ["clean", "prebuild"]
[tasks.build-docker-release]
command = "cargo"
args = ["build", "--target", "x86_64-unknown-linux-musl", "--release"]
dependencies = ["clean", "prebuild"]
[tasks.test]
command = "cargo"
args = ["test"]
dependencies = ["clean", "prebuild"]
[tasks.bybe-build]
dependencies = [
"format",
"build",
"clippy",
"test"
]
[tasks.bybe-release]
dependencies = [
"test",
"build-release",
"post_build"
]
[tasks.bybe-docker-release]
dependencies = [
"build-docker-release",
"post_build"
]
[tasks.format-and-lint]
dependencies = [
"format",
"lint"
]