12 lines
173 B
Bash
Executable File
12 lines
173 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "Running tests before commit..."
|
|
|
|
# run tests
|
|
make test || {
|
|
echo "Tests failed. Commit aborted."
|
|
exit 1
|
|
}
|
|
|
|
echo "Tests passed. Proceeding with commit."
|