Skip to content

Commit

Permalink
Support getting phpcs path's from an env var.
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Feb 16, 2012
1 parent 71bedb1 commit 73cd506
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions git-submodules-update.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
env

# Prepare the environment with some common variables
BASEDIR=$(dirname $0)
. $BASEDIR/environment
Expand Down Expand Up @@ -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

Expand Down
5 changes: 4 additions & 1 deletion violations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.