Permalink
Browse files

[travis] Update script for get php-cs-fixer from Composer install

  • Loading branch information...
1 parent c88e584 commit 886b641cd881dbb029b2476b45e44612cb892a78 @Maks3w Maks3w committed Oct 16, 2013
Showing with 5 additions and 7 deletions.
  1. +4 −2 bin/check-cs.sh
  2. +1 −5 build.xml
View
@@ -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
View
@@ -11,10 +11,6 @@
<mkdir dir="${basedir}/build/cs-results"/>
</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">
@@ -34,7 +30,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">

0 comments on commit 886b641

Please sign in to comment.