Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ci-phplint « test - github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5f8a47cf421065d3ce29457a2777ac2580c6ed59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

FILES=$(find . -name '*.php' -not -path './vendor/*' -not -path './tmp/*' -not -path './node_modules/*')

result=0
for FILE in $FILES ; do
    if [ -f "$FILE" ] ; then
        php -l "$FILE"
        ret=$?
        if [ $ret != 0 ] ; then
            result=$ret
        fi
    fi
done

exit $result