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

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-05-02 22:10:26 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-05-03 01:29:34 +0300
commite4d0464297ea2c66ebf7b37c10e65f7436a0044b (patch)
tree84106c19acddf7cf09c621a2f8e6dd06f477afb2 /test/ci-phplint
parent35e13eada75b421f04a1a16b97023e18102d0667 (diff)
Add PHP_CodeSniffer and ESLint to Travis CI
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'test/ci-phplint')
-rwxr-xr-xtest/ci-phplint13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ci-phplint b/test/ci-phplint
new file mode 100755
index 0000000000..1e5e4959fb
--- /dev/null
+++ b/test/ci-phplint
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ -z "$TRAVIS_COMMIT_RANGE" ] ; then
+ FILES=`find . -name '*.php' -not -path './vendor/*'`
+else
+ FILES=`git diff --name-only $TRAVIS_COMMIT_RANGE -- '*.php'`
+fi
+
+for FILE in $FILES ; do
+ if [ -f $FILE ] ; then
+ php -l $FILE
+ fi
+done