Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (9 sloc) 229 Bytes
#!/bin/bash
set -e -f -u -o pipefail
php_files_being_committed() {
git diff --cached --name-only --diff-filter=ACM \
| (grep '.php$' || true)
}
if [[ -n "$(php_files_being_committed)" ]]; then
phpunit --no-coverage
fi
You can’t perform that action at this time.