| 1 | #!/bin/bash |
| 2 | # Code from https://gist.github.com/holysugar/1318698 , simpler than |
| 3 | # http://stackoverflow.com/a/6262715/451712 |
| 4 | |
| 5 | # Work out location of Thanks/scripts/ directory |
| 6 | dir=$(dirname $(php -r "echo realpath('$0'), \"\\n\";")) |
| 7 | # Move to the project root |
| 8 | cd $(dirname $dir) |
| 9 | |
| 10 | find ./ -type f -iname '*.php' -print0 | xargs -0 -P 12 -L 1 php -l |
| 11 | |
| 12 | # Run npm test |
| 13 | npm test |