-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
73 lines (57 loc) · 1.54 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
70
71
72
73
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
[config]
default_to_workspace = false
[tasks.build]
command = "cargo"
args = ["build"]
[tasks.format]
install_crate = "rustfmt"
command = "cargo"
args = ["fmt", "--all", "--", "--check"]
[tasks.clippy]
install_crate = "clippy"
command = "cargo"
args = ["clippy", "--all", "--", "-D", "warnings"]
[tasks.test]
command = "cargo"
args = ["test", "--tests"]
[tasks.udeps]
install_crate = "cargo-udeps"
command = "cargo"
args = ["udeps"]
[tasks.validate]
run_task = { name = ["format", "clippy", "test", "udeps"] }
[tasks.star_demo]
command = "cargo"
args = ["run", "--bin", "star_demo"]
[tasks.keyboard_integration_test]
command = "cargo"
env = { "BITT_SCRIPT" = "keyboard" }
args = ["run", "--bin", "star_test"]
[tasks.controller_integration_test]
command = "cargo"
env = { "BITT_SCRIPT" = "controller" }
args = ["run", "--bin", "star_test"]
# Bevy stores mouse position in window, this won't work in headless mode
[tasks.mouse_integration_test]
command = "cargo"
args = ["run", "--bin", "click_demo", "--", "three-clicks"]
[tasks.integration_test]
run_task = { name = [
"controller_integration_test",
"keyboard_integration_test",
"mouse_integration_test",
] }
[tasks.headless_integration_test]
run_task = { name = [
"controller_integration_test",
"keyboard_integration_test",
] }
env = { "HEADLESS" = "true" }
[tasks.ci_integration_test]
run_task = "integration_test"
env = { "CI" = "true" }
[tasks.headless_ci_integration_test]
run_task = "headless_integration_test"
env = { "CI" = "true" }