aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/xmake.lua b/xmake.lua
index 4469a3acc..1eeeb2a5a 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -184,6 +184,15 @@ task("bundle")
bundle()
end)
+task("precommit")
+ set_menu {
+ usage = "xmake precommit",
+ description = "Run required pre-commit steps (clang-format, etc)",
+ }
+ on_run(function ()
+ print(os.exec("pre-commit run --all-files"))
+ end)
+
task("test")
set_menu {
usage = "xmake runtest [core|store|server|integration|all]",