From 607d7051937351bcbe87b0b7b3ea3f2fd0318720 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Thu, 7 Feb 2013 02:49:54 +0100 Subject: [PATCH] Adding ANT build configuration and related files --- .travis.yml | 4 +- bin/check-cs.sh | 17 ++++++ build.xml | 138 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 156 insertions(+), 3 deletions(-) create mode 100755 bin/check-cs.sh create mode 100644 build.xml diff --git a/.travis.yml b/.travis.yml index 403023390aa..7d949f6078f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,11 +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: - - ./bin/travis-build.sh + - 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