diff --git a/.travis.yml b/.travis.yml index 9ace6a0f59e..7d949f6078f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,12 +12,9 @@ matrix: before_install: - cp tests/TestConfiguration.php.travis tests/TestConfiguration.php - - composer install --dev --prefer-source - - wget http://cs.sensiolabs.org/get/php-cs-fixer.phar script: - - php ./tests/run-tests.php - - output=$(php php-cs-fixer.phar fix -v --dry-run .); if [[ $output ]]; then while read -r line; do echo -e "\e[00;31m$line\e[00m"; done <<< "$output"; false; fi; + - ant travis -keep-going notifications: irc: "irc.freenode.org#zftalk.dev" diff --git a/bin/check-cs.sh b/bin/check-cs.sh new file mode 100755 index 00000000000..6cc200f780e --- /dev/null +++ b/bin/check-cs.sh @@ -0,0 +1,17 @@ +#!/bin/bash +cd "$(dirname $(dirname "$0"))" + +output=$(php php-cs-fixer.phar fix -v --dry-run --level=psr2 .) +echo $output +cs=0 +if [[ "$output" -ne "" ]];then + cs=2 +fi +echo "Coding standards exited with status $cs" + +if [[ "$cs" -eq "2" ]];then + echo "Exiting with status 2 due to CS"; + exit 2; +fi + +exit 0 diff --git a/build.xml b/build.xml new file mode 100644 index 00000000000..19baf9a80ad --- /dev/null +++ b/build.xml @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ZendTest/@{component} + + + + + + + + + + + + + + + Coding standards + + + + + + + + + + \ No newline at end of file