Permalink
Browse files

Support getting phpcs path's from an env var.

  • Loading branch information...
1 parent 71bedb1 commit 73cd5061ded93d665eef915da5850ceabeb491e2 root committed Feb 16, 2012
Showing with 6 additions and 4 deletions.
  1. +2 −3 git-submodules-update.sh
  2. +4 −1 violations.sh
View
@@ -1,5 +1,5 @@
#!/bin/bash
-env
+
# Prepare the environment with some common variables
BASEDIR=$(dirname $0)
. $BASEDIR/environment
@@ -30,8 +30,7 @@ then
fi
else
git submodule foreach git checkout ${GIT_BRANCH#origin/}
- git submodule foreach git pull
- git submodule foreach git push
+ git submodule foreach git pull --ff-only
git commit -a -m "Update submodules"
fi
View
@@ -8,8 +8,11 @@ BASEDIR=$(dirname $0)
rm -rf build || true
mkdir build
+# What paths do we want to check?
+PHPCS_PATHS=${PHPCS_PATHS:-**/classes **/**/classes}
+
# Lets go..
pushd $SOURCEDIR
-phpcs --standard=Kohana -s --extensions=php --report=checkstyle **/classes **/**/classes > ../build/phpcs.xml
+phpcs --standard=Kohana -s --extensions=php --report=checkstyle $PHPCS_PATHS > ../build/phpcs.xml
PHPCSEXIT=$?
popd

0 comments on commit 73cd506

Please sign in to comment.