Skip to content

Instantly share code, notes, and snippets.

View oqq's full-sized avatar
👽

Eric Braun oqq

👽
View GitHub Profile
@zushane
zushane / pre-commit
Last active April 15, 2019 21:39
A git pre-commit hook to run phpunit tests, written in bash. Features pretty colours, and slightly individualized output.
#!/bin/bash
# Locate our phpunit.
phpunit=`which phpunit`
# Any extra arguments to phpunit should go here.
phpunit_args=""
# Define a location to save the output.
outputlog="/tmp/phpunit_output_`date +%s`.log"