-
-
Save gpressutto5/d326980950e9733368e0b7e7d879a12f to your computer and use it in GitHub Desktop.
git bisect phpunit wrapper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
lcd artisan migrate | |
lcd phpunit --testsuite=VMS --filter=testGetPossibleTimeSegmentsForOldestDraftInvoiceWithCrossoverHandlingEnd | |
EXIT_CODE="$?" | |
lcd artisan migrate:rollback | |
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