Skip to content

Instantly share code, notes, and snippets.

@Potherca
Forked from havvg/git-bisect-phpunit.sh
Created May 27, 2012 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Potherca/2814044 to your computer and use it in GitHub Desktop.
Save Potherca/2814044 to your computer and use it in GitHub Desktop.
git bisect phpunit wrapper
#!/bin/bash
phpunit
EXIT_CODE="$?"
if [ $EXIT_CODE -eq "255" ]; then
# Wrapping the error code to 1, so bisect marks this build as "bad" and continues.
exit 1
fi
if [ $EXIT_CODE -eq "2" ]; then
# The testsuite does not exist, so we skip bisect here.
exit 125
fi
exit $EXIT_CODE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment