Pre-Commit

From Elektra Initiative

#!/bin/sh
#
# To enable this hook, make this file executable.
#
# Tries to build elektra and run tests.
#
# Fails for every error
set -e

SUBDIRECTORY_OK="1"
. git-sh-setup

#pwd
cd_to_toplevel
#pwd

echo "Executing pre-commit hook"

echo "Trying to compile"
make

echo "Trying to run test suite"
cd tests
make check
Views
MediaWiki