Created
June 10, 2020 13:58
-
-
Save vedit/3e0df2de8201f73cbea2ebd441403eae to your computer and use it in GitHub Desktop.
PHP Syntax Checker Script
This file contains hidden or 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 | |
docker run -t -v "$PWD":/usr/src/ci -w /usr/src/ci php:7.2-cli bash -ec "find . -path ./vendor -prune -o -type f -iname '*.php' | xargs -I{} sh -c 'php -l {} || true'" | grep 'Parse error' && exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment