grovel.lisp: missing enum fields for webkit-cache-model
[cl-webkit.git] / git_hooks / pre-commit
blob38c8d5a5a3458b0bc38278827df3df6e14b3a7ef
1 #!/bin/sh
3 # Pre-commit checks
5 # Lisp command
6 LISP=${LISP:-"sbcl --noinform"}
8 # Source tree root
9 topdir=`git rev-parse --show-toplevel`
11 # Check that the package still loads
12 run_build_test=false
14 cd "$topdir"
15 for x in `git diff-index --cached --name-only HEAD` ; do
16 case "$x" in
17 tools/*) continue ;;
18 *.lisp|*.asd) run_build_test=true ;;
19 esac
20 done
22 if $run_build_test ; then
23 echo "Running build test"
25 $LISP --load tools/buildtest.lisp --eval '(buildtest :cl-webkit)'
26 if [ $? -ne 0 ] ; then
27 echo "Commit rejected: build failed"
28 exit 1