Skip to content

Commit

Permalink
Forward port zendframework#5281
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Willbanks committed Oct 20, 2013
2 parents be748e7 + e903de8 commit 1e998f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 4 additions & 2 deletions bin/check-cs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash

libraryCS=$(php php-cs-fixer.phar fix -v --dry-run --level=psr2 ./library)
testsCS=$(php php-cs-fixer.phar fix -v --dry-run --level=psr2 ./tests)
FIXER_PATH="`dirname $0`/../vendor/fabpot/php-cs-fixer/php-cs-fixer"

libraryCS=$(php $FIXER_PATH fix -v --dry-run --level=psr2 ./library)
testsCS=$(php $FIXER_PATH fix -v --dry-run --level=psr2 ./tests)

if [[ "$libraryCS" || "$testsCS" ]];
then
Expand Down
6 changes: 1 addition & 5 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
<mkdir dir="${basedir}/build/logs"/>
</target>

<target name="get-cs-fixer" depends="clean" description="Get coding standards fixer">
<get src="http://cs.sensiolabs.org/get/php-cs-fixer.phar" dest="${basedir}/php-cs-fixer.phar"/>
</target>

<target name="composer-install" description="Installs dependencies via composer install">
<sequential>
<exec executable="composer" failonerror="true">
Expand Down Expand Up @@ -52,7 +48,7 @@

<target
name="tests-parallel"
depends="prepare,composer-install,get-cs-fixer"
depends="prepare,composer-install"
description="Run tests for the various components in parallel"
>
<parallel threadCount="8">
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"ircmaxell/security-lib": "dev-master",
"mikey179/vfsStream": "1.2.*",
"ocramius/proxy-manager": "0.4.*",
"fabpot/php-cs-fixer": "*@dev",
"phpunit/PHPUnit": "3.7.*",
"satooshi/php-coveralls": "dev-master",
"sebastianbergmann/phpcov": "1.1.0"
Expand Down

0 comments on commit 1e998f2

Please sign in to comment.