summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbt <bt@rctt.net>2026-03-29 08:41:48 +0200
committerbt <bt@rctt.net>2026-03-29 08:45:47 +0200
commit8986e4e7b20f271bae72d7a77ab4b7feb2b1ad78 (patch)
tree41fc87761a733d34fc9ed98ea8e2712bd003e61b
parent19a65f220bf326dd46f143c8292fa55d2b5c9bc3 (diff)
downloadsolec-8986e4e7b20f271bae72d7a77ab4b7feb2b1ad78.tar.gz
solec-8986e4e7b20f271bae72d7a77ab4b7feb2b1ad78.zip
[tools] Add docs build to pre-commit hook
-rwxr-xr-xhooks/pre-commit10
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