diff options
| author | bt <bt@rctt.net> | 2026-03-29 08:41:48 +0200 |
|---|---|---|
| committer | bt <bt@rctt.net> | 2026-03-29 08:45:47 +0200 |
| commit | 8986e4e7b20f271bae72d7a77ab4b7feb2b1ad78 (patch) | |
| tree | 41fc87761a733d34fc9ed98ea8e2712bd003e61b /hooks/pre-commit | |
| parent | 19a65f220bf326dd46f143c8292fa55d2b5c9bc3 (diff) | |
| download | solec-8986e4e7b20f271bae72d7a77ab4b7feb2b1ad78.tar.gz solec-8986e4e7b20f271bae72d7a77ab4b7feb2b1ad78.zip | |
[tools] Add docs build to pre-commit hook
Diffstat (limited to 'hooks/pre-commit')
| -rwxr-xr-x | hooks/pre-commit | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/hooks/pre-commit b/hooks/pre-commit index 422b855..8336947 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -4,5 +4,13 @@ if [ $(git rev-parse --abbrev-ref HEAD) != "main" ]; then exit 0 fi +cd $(git rev-parse --show-toplevel) + +echo "Building docs" +make -C docs txt +make -C docs html + echo "Running tests before commit to main" -go test ./...
\ No newline at end of file +go test ./... + +cd -
\ No newline at end of file |
