Allow passing arguments to test and build commands

This commit is contained in:
Kunal Mohan 2021-05-22 22:54:00 +05:30
parent d13fc7cafa
commit 1933310626

View file

@ -24,7 +24,7 @@ env = { "SKIP_TEST" = true }
[tasks.test] [tasks.test]
condition = { env_false = ["SKIP_TEST"] } condition = { env_false = ["SKIP_TEST"] }
dependencies = ["pre-test"] dependencies = ["pre-test"]
args = ["test"] args = ["test", "--", "@@split(CARGO_MAKE_TASK_ARGS,;)"]
[tasks.post-test] [tasks.post-test]
env = { "SKIP_TEST" = false } env = { "SKIP_TEST" = false }
@ -39,10 +39,10 @@ run_task = "launch"
run_task = { name = "build", fork = true } run_task = { name = "build", fork = true }
[tasks.build] [tasks.build]
args = ["build"] args = ["build", "--", "@@split(CARGO_MAKE_TASK_ARGS,;)"]
[tasks.build-release] [tasks.build-release]
args = ["build", "--release"] args = ["build", "--release", "--", "@@split(CARGO_MAKE_TASK_ARGS,;)"]
[tasks.build-dev-data-dir] [tasks.build-dev-data-dir]
script_runner = "@duckscript" script_runner = "@duckscript"