|
| 1 | +# This is a configuration file for the bacon tool |
| 2 | +# |
| 3 | +# Bacon repository: https://github.com/Canop/bacon |
| 4 | +# Complete help on configuration: https://dystroy.org/bacon/config/ |
| 5 | +# You can also check bacon's own bacon.toml file |
| 6 | +# as an example: https://github.com/Canop/bacon/blob/main/bacon.toml |
| 7 | + |
| 8 | +default_job = "check" |
| 9 | + |
| 10 | +[jobs.check] |
| 11 | +command = ["cargo", "check", "--color", "always"] |
| 12 | +need_stdout = false |
| 13 | + |
| 14 | +[jobs.check-all] |
| 15 | +command = ["cargo", "check", "--all-targets", "--color", "always"] |
| 16 | +need_stdout = false |
| 17 | + |
| 18 | +# Run clippy on the default target |
| 19 | +[jobs.clippy] |
| 20 | +command = ["cargo", "clippy", "--color", "always"] |
| 21 | +need_stdout = false |
| 22 | + |
| 23 | +# Run clippy on all targets |
| 24 | +# To disable some lints, you may change the job this way: |
| 25 | +# [jobs.clippy-all] |
| 26 | +# command = [ |
| 27 | +# "cargo", "clippy", |
| 28 | +# "--all-targets", |
| 29 | +# "--color", "always", |
| 30 | +# "--", |
| 31 | +# "-A", "clippy::bool_to_int_with_if", |
| 32 | +# "-A", "clippy::collapsible_if", |
| 33 | +# "-A", "clippy::derive_partial_eq_without_eq", |
| 34 | +# ] |
| 35 | +# need_stdout = false |
| 36 | +[jobs.clippy-all] |
| 37 | +command = ["cargo", "clippy", "--all-targets", "--color", "always"] |
| 38 | +need_stdout = false |
| 39 | + |
| 40 | +# You can run your application and have the result displayed in bacon, |
| 41 | +# *if* it makes sense for this crate. |
| 42 | +# Don't forget the `--color always` part or the errors won't be |
| 43 | +# properly parsed. |
| 44 | +# If your program never stops (eg a server), you may set `background` |
| 45 | +# to false to have the cargo run output immediately displayed instead |
| 46 | +# of waiting for program's end. |
| 47 | +[jobs.run] |
| 48 | +command = [ |
| 49 | + "cargo", |
| 50 | + "run", |
| 51 | + "--color", |
| 52 | + "always", |
| 53 | + # put launch parameters for your program behind a `--` separator |
| 54 | +] |
| 55 | +need_stdout = true |
| 56 | +allow_warnings = true |
| 57 | +background = true |
| 58 | + |
| 59 | +# You may define here keybindings that would be specific to |
| 60 | +# a project, for example a shortcut to launch a specific job. |
| 61 | +# Shortcuts to internal functions (scrolling, toggling, etc.) |
| 62 | +# should go in your personal global prefs.toml file instead. |
| 63 | +[keybindings] |
| 64 | +# alt-m = "job:my-job" |
| 65 | +c = "job:clippy-all" # comment this to have 'c' run clippy on only the default target |
| 66 | +1 = "job:test-spec-no-watch" |
| 67 | +2 = "job:test-staging-no-watch" |
| 68 | +3 = "job:test-all-no-watch" |
| 69 | +4 = "job:test-spec" |
| 70 | +5 = "job:test-staging" |
| 71 | +6 = "job:test-all" |
| 72 | + |
| 73 | +[jobs.test-spec] |
| 74 | +command = [ |
| 75 | + "cargo", |
| 76 | + "test", |
| 77 | + "-p", |
| 78 | + "ezno-checker-specification", |
| 79 | + "--color", |
| 80 | + "always", |
| 81 | + "--", |
| 82 | + "--color", |
| 83 | + "always", |
| 84 | +] |
| 85 | +need_stdout = true |
| 86 | +watch = ["checker", "parser"] |
| 87 | + |
| 88 | +[jobs.test-staging] |
| 89 | +command = [ |
| 90 | + "cargo", |
| 91 | + "test", |
| 92 | + "-p", |
| 93 | + "ezno-checker-specification", |
| 94 | + "-F", |
| 95 | + "staging", |
| 96 | + "--color", |
| 97 | + "always", |
| 98 | + "--", |
| 99 | + "--color", |
| 100 | + "always", |
| 101 | +] |
| 102 | +need_stdout = true |
| 103 | +watch = ["checker", "parser"] |
| 104 | + |
| 105 | +[jobs.test-all] |
| 106 | +command = [ |
| 107 | + "cargo", |
| 108 | + "test", |
| 109 | + "-p", |
| 110 | + "ezno-checker-specification", |
| 111 | + "-F", |
| 112 | + "all", |
| 113 | + "--color", |
| 114 | + "always", |
| 115 | + "--", |
| 116 | + "--color", |
| 117 | + "always", |
| 118 | +] |
| 119 | +need_stdout = true |
| 120 | +watch = ["checker", "parser"] |
| 121 | + |
| 122 | +[jobs.test-spec-no-watch] |
| 123 | +command = [ |
| 124 | + "cargo", |
| 125 | + "test", |
| 126 | + "-p", |
| 127 | + "ezno-checker-specification", |
| 128 | + "--color", |
| 129 | + "always", |
| 130 | + "--", |
| 131 | + "--color", |
| 132 | + "always", |
| 133 | +] |
| 134 | +need_stdout = true |
| 135 | +default_watch = false |
| 136 | + |
| 137 | +[jobs.test-staging-no-watch] |
| 138 | +command = [ |
| 139 | + "cargo", |
| 140 | + "test", |
| 141 | + "-p", |
| 142 | + "ezno-checker-specification", |
| 143 | + "-F", |
| 144 | + "staging", |
| 145 | + "--color", |
| 146 | + "always", |
| 147 | + "--", |
| 148 | + "--color", |
| 149 | + "always", |
| 150 | +] |
| 151 | +need_stdout = true |
| 152 | +default_watch = false |
| 153 | + |
| 154 | +[jobs.test-all-no-watch] |
| 155 | +command = [ |
| 156 | + "cargo", |
| 157 | + "test", |
| 158 | + "-p", |
| 159 | + "ezno-checker-specification", |
| 160 | + "-F", |
| 161 | + "all", |
| 162 | + "--color", |
| 163 | + "always", |
| 164 | + "--", |
| 165 | + "--color", |
| 166 | + "always", |
| 167 | +] |
| 168 | +need_stdout = true |
| 169 | +default_watch = false |
0 commit comments