Changeset 5944


Ignore:
Timestamp:
01/18/12 04:01:15 (4 months ago)
Author:
vain
Message:
  • added phpcs local for manual execution of codesniffer on the server
  • adjusted build.sh trigger file to the build filename
Location:
trunk/build-tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/build-tools/build.sh

    r5240 r5944  
    11#!/bin/sh 
    2 phing -f /home/clansuite/svn-export/build-tools/build-clansuite.xml $1 
     2phing -f /home/clansuite/svn-export/build-tools/build.xml $1 
  • trunk/build-tools/build.xml

    r5912 r5944  
    353353    </target> 
    354354 
     355    <target name="run-tests" description="Run some tests."> 
     356        <phingcall target="simpletest" /> 
     357    </target> 
     358 
    355359    <target name="simpletest" description="Runs simpletest unit-tests and creates report"> 
    356360        <echo msg="Running simpletest unit-tests and creating test report." /> 
     
    383387                             --standard=${sourcedir}/build-tools/CodeSniffer/Standards/Clansuite/ 
    384388                             --ignore=${ignorepaths} ${sourcedir} > ${builddir}/logs/phpcs.xml" escape="false" /> 
     389    </target> 
     390 
     391    <target name="phpcs-local" description="Runs the PHP-Codesniffer task and reports coding standard violations"> 
     392        <echo msg="PHP_CodeSniffer runs CodeSniffs and reports coding standard violations." /> 
     393        <exec command="phpcs --extensions=php --report=checkstyle 
     394                             --standard=/home/clansuite/svn-export/build-tools/CodeSniffer/Standards/Clansuite/ruleset.xml 
     395                             --ignore=${ignorepaths} /home/clansuite/svn > phpcs.xml" escape="false" /> 
    385396    </target> 
    386397 
Note: See TracChangeset for help on using the changeset viewer.