summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2024-04-03 12:50:10 -0400
committerBen Sima <ben@bsima.me>2024-04-03 16:18:12 -0400
commit5d15e98e07415803b477efa492e62d59c6ef6ccc (patch)
treef5d527a633b183ababab3399e59f5df76046e8dd
parentde108b83248b4ab43c4d40b154583f9a9f0e6c1a (diff)
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.
-rw-r--r--.envrc7
1 files changed, 6 insertions, 1 deletions
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