From 2bccd50b7a11dda0ae239ce13efcdac118bfee92 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 24 Jun 2021 15:06:43 -0700 Subject: feat(dos-bot): :star: --- Makefile.toml | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Makefile.toml (limited to 'Makefile.toml') diff --git a/Makefile.toml b/Makefile.toml new file mode 100644 index 0000000..969cb3b --- /dev/null +++ b/Makefile.toml @@ -0,0 +1,79 @@ +# ------------ +# | Wrappers | +# ------------ +[tasks.fmt] +command = "cargo" +args = ["fmt"] +private = true + +[tasks.check] +command = "cargo" +args = ["check"] +private = true + +[tasks.clippy] +command = "cargo" +args = ["clippy"] +private = true + +# ------------- +# | Executors | +# ------------- +[tasks.checkf] +dependencies = ["fmt", "check"] + +[tasks.checkfc] +dependencies = ["fmt", "check", "clippy"] + +[tasks.run] +dependencies = ["checkf"] +command = "cargo" +args = ["run"] + +[tasks.runw] +dependencies = ["checkf"] +command = "cargo" +args = ["run"] +watch = true + +[tasks.docker-build] +workspace = false +command = "nix-build" +args = ["docker.nix"] + +[tasks.docker-load] +workspace = false +script_runner = "@shell" +script = ''' +docker load < result +''' + +[tasks.docker-run] +deprecated = true +command = "docker" +args = [ + "run", + "--name", "DosBot", + "-v", "/var/lib/dos-bot:/.dos-bot", + "fuwn/dos-bot" +] + +[tasks.docker-run-i] +deprecated = true +command = "docker" +args = [ + "run", + "-it", + "--name", "DosBot", + "-v", "/var/lib/dos-bot:/.dos-bot", + "fuwn/dos-bot" +] + +# Build 'n' load +[tasks.bnl] +dependencies = ["docker-build", "docker-load"] + +[tasks.gen-docs] +toolchain = "nightly" +command = "cargo" +args = ["doc", "--open", "--document-private-items", "--no-deps"] -- cgit v1.2.3