-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
62 lines (52 loc) · 1.42 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
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
[tasks.format]
install_crate = "rustfmt"
command = "cargo"
args = ["fmt", "--", "--check"]
description = "Run rustfmt to check the code formatting without making changes."
[tasks.clean]
command = "cargo"
args = ["clean"]
description = "Clean up the project by removing the target directory."
[tasks.clippy]
command = "cargo"
args = ["clippy", "--all-targets", "--all-features", "--", "-Dwarnings"]
description = "Run clippy to catch common mistakes and improve your Rust code."
[tasks.test]
workspace = false
command = "cargo"
args = ["nextest", "run", "--workspace", "${@}"]
description = "Execute all unit tests in the workspace."
[tasks.run-ci-flow]
workspace = false
description = "Run the entire CI pipeline including format, clippy, and test checks."
dependencies = ["format", "clippy", "test"]
[tasks.setup]
workspace = false
description = "Set up the L2 indexer environment."
script = '''
echo "Setting up the environment..."
./scripts/setup.sh
'''
[tasks.restart]
workspace = false
description = "Restart the L2 indexer."
script = '''
echo "Restart the program..."
./scripts/restart.sh
'''
[tasks.stop]
workspace = false
description = "Stop the L2 indexer."
script = '''
echo "Stop the program..."
./scripts/stop.sh
'''
[tasks.cleanup]
workspace = false
description = "Clean up the setup by running the cleanup script."
script = '''
echo "Cleaning up..."
./scripts/cleanup.sh
'''