mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-05 21:15:39 -06:00
94 lines
2.0 KiB
TOML
94 lines
2.0 KiB
TOML
# This is a configuration file for the bacon tool
|
||
#
|
||
# Complete help on configuration: https://dystroy.org/bacon/config/
|
||
#
|
||
# You may check the current default at
|
||
# https://github.com/Canop/bacon/blob/main/defaults/default-bacon.toml
|
||
|
||
default_job = "check"
|
||
env.CARGO_TERM_COLOR = "always"
|
||
|
||
[jobs.check]
|
||
command = ["cargo", "check"]
|
||
need_stdout = false
|
||
|
||
[jobs.check-all]
|
||
command = ["cargo", "check", "--all-targets"]
|
||
need_stdout = false
|
||
|
||
# Run clippy on the default target
|
||
[jobs.clippy]
|
||
command = ["cargo", "clippy"]
|
||
need_stdout = false
|
||
|
||
# Run clippy on all targets
|
||
[jobs.clippy-all]
|
||
command = ["cargo", "clippy", "--all-targets"]
|
||
need_stdout = false
|
||
|
||
[jobs.test]
|
||
command = [
|
||
"cargo",
|
||
"nextest",
|
||
"run",
|
||
"--hide-progress-bar",
|
||
"--failure-output",
|
||
"final",
|
||
]
|
||
need_stdout = true
|
||
analyzer = "nextest"
|
||
|
||
[jobs.coverage]
|
||
command = ["just", "report-coverage"]
|
||
need_stdout = true
|
||
ignored_lines = [
|
||
"info:",
|
||
"\\s+Compiling",
|
||
"test result: ok",
|
||
"^\\s*$",
|
||
"running \\d+ test",
|
||
"Nextest run ID",
|
||
"[─]+",
|
||
"test.+ok",
|
||
"PASS|START",
|
||
"Starting \\d+ test",
|
||
"\\s*#",
|
||
"\\s*Finished.+in \\d+",
|
||
"\\s*Summary\\s+\\[",
|
||
"\\s*Blocking",
|
||
"Finished report saved to",
|
||
]
|
||
on_change_strategy = "wait_then_restart"
|
||
|
||
[jobs.doc]
|
||
command = ["cargo", "doc", "--no-deps"]
|
||
need_stdout = false
|
||
|
||
# If the doc compiles, then it opens in your browser and bacon switches to the previous job
|
||
[jobs.doc-open]
|
||
command = ["cargo", "doc", "--no-deps", "--open"]
|
||
need_stdout = false
|
||
on_success = "back" # so that we don't open the browser at each change
|
||
|
||
[jobs.run]
|
||
command = ["cargo", "run"]
|
||
need_stdout = true
|
||
allow_warnings = true
|
||
background = false
|
||
on_change_strategy = "kill_then_restart"
|
||
# kill = ["pkill", "-TERM", "-P"]'
|
||
|
||
[jobs.precommit]
|
||
command = ["pre-commit", "run", "--all-files"]
|
||
need_stdout = true
|
||
background = false
|
||
on_change_strategy = "kill_then_restart"
|
||
|
||
[keybindings]
|
||
c = "job:clippy"
|
||
alt-c = "job:check"
|
||
ctrl-alt-c = "job:check-all"
|
||
shift-c = "job:clippy-all"
|
||
f = "job:coverage"
|
||
p = "job:precommit"
|