From 5d15e98e07415803b477efa492e62d59c6ef6ccc Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 3 Apr 2024 12:50:10 -0400 Subject: Configure git test command This is a command from git-branchless that will run and verify tests on all commits in the revset. Now that the bild is stable and fast enough, I should be able to use this to validate all commits before publishing, perhaps even running the pre-push CI script. --- .envrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.envrc b/.envrc index bbcbf3c..c816943 100644 --- a/.envrc +++ b/.envrc @@ -35,8 +35,13 @@ eval "$(lorri direnv)" fi # -# configure git hooks +# configure git git config --local core.hooksPath "$CODEROOT/Biz/Ide/hooks" + git config --local branchless.test.strategy worktree + git config --local branchless.test.alias.default 'CODEROOT=$PWD bild --test **/*' + git config --local branchless.test.alias.bild 'CODEROOT=$PWD bild **/*' + git config --local branchless.test.alias.lint 'CODEROOT=$PWD bild Biz/Lint.hs && _/bin/lint **/*' + git config --local branchless.test.alias.lintfix 'CODEROOT=$PWD bild Biz/Lint.hs && _/bin/lint --fix **/*' # # load local settings . ./.envrc.local -- cgit v1.2.3