diff options
author | Ben Sima <ben@bsima.me> | 2024-04-03 12:50:10 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2024-04-03 16:18:12 -0400 |
commit | 5d15e98e07415803b477efa492e62d59c6ef6ccc (patch) | |
tree | f5d527a633b183ababab3399e59f5df76046e8dd /.envrc | |
parent | de108b83248b4ab43c4d40b154583f9a9f0e6c1a (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.
Diffstat (limited to '.envrc')
-rw-r--r-- | .envrc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |