Changeset 1315
- Timestamp:
- 01/31/08 09:01:26 (7 months ago)
- Files:
-
- trunk/build/stubbles-ioc/build.xml (modified) (5 diffs)
- trunk/src/main/php/org/simpletest (deleted)
- trunk/src/test/MySimpleTestTask.php (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build/stubbles-ioc/build.xml
r1153 r1315 10 10 </path> 11 11 12 <taskdef name="mySimpletest" classname="MySimpleTestTask" classpath="${stubbles.base.dir}/src/test" />13 12 <taskdef name="minifyJs" classname="stubJsMinTask" classpathref="phing.tasks.classpath" /> 14 13 <taskdef name="checkStyle" classname="stubCheckStyleTask" classpathref="phing.tasks.classpath" /> … … 60 59 version="${version}" 61 60 title="Stubbles Inversion of Control" 62 package="net .stubbles.ioc"61 package="net::stubbles::ioc" 63 62 author="Stubbles Development Team <http://stubbles.net>" 64 63 copyright="Stubbles Development Team" 65 preface="<?php require 'star://' . __FILE__ . '? net.stubbles.star.StarClassRegistry'; ?>${stubClassLoader}"64 preface="<?php require 'star://' . __FILE__ . '?org::stubbles::star::StarClassRegistry'; ?>${stubClassLoader}" 66 65 baseSrcPath="${stubbles.base.dir}/src/main"> 67 66 <fileset dir="${stubbles.base.dir}/src/main"> … … 69 68 <include name="**/net/stubbles/ioc/**/*.php" /> 70 69 <include name="**/net/stubbles/reflection/**/*.php" /> 71 <include name="**/ net/stubbles/star/StarClassRegistry.php" />70 <include name="**/org/stubbles/star/StarClassRegistry.php" /> 72 71 </fileset> 73 72 </buildStar> … … 90 89 <target name="test" description="run test suite"> 91 90 <phingcall target="test-preparation" /> 92 <mySimpletest testfile=""${stubbles.base.dir}/src/test/run.php"" exit="true" /> 93 <!-- run two times, this time with the data cached --> 94 <mySimpletest testfile=""${stubbles.base.dir}/src/test/run.php"" exit="true" /> 91 <exec passthru="true" command="phpunit src_test_AllTests"/> 95 92 </target> 96 93 97 94 <target name="test-integration"> 98 95 <phingcall target="test-preparation" /> 99 <mySimpletest testfile=""${stubbles.base.dir}/src/test/runIntegration.php"" exit="true" /> 100 <!-- run two times, this time with the data cached --> 101 <mySimpletest testfile=""${stubbles.base.dir}/src/test/runIntegration.php"" exit="true" /> 96 <exec passthru="true" command="phpunit src_test_IntegrationTests"/> 102 97 </target> 103 98 … … 111 106 </target> 112 107 113 <target name="check-style" description="check coding standards ">108 <target name="check-style" description="check coding standards with PHP_CodeSniffer"> 114 109 <echo>----------------------------------</echo> 115 110 <echo>| Checking CS of source files |</echo> 116 111 <echo>----------------------------------</echo> 117 <checkStyle failonerror="true"> 118 <fileset dir="${stubbles.base.dir}/src/main"> 119 <include name="**/net/stubbles/lang/**/*.php" /> 120 <include name="**/net/stubbles/ioc/**/*.php" /> 121 <include name="**/net/stubbles/reflection/**/*.php" /> 122 </fileset> 123 </checkStyle> 112 <property name="check.path" value="main"/> 113 <echo message="currently 'check.path' is set to '${check.path}'"/> 114 <input propertyname="namespace" promptChar=":">which stubbles namespace should be checked</input> 115 <if> 116 <or> 117 <os family="mac"/> 118 <os family="unix"/> 119 </or> 120 <then> 121 <!-- normal slashes --> 122 <exec command="phpcs --standard=${stubbles.base.dir}/src/main/php/org/stubbles/codeSniffer/Stubbles ${stubbles.base.dir}/src/${check.path}/php/net/stubbles/${namespace}" passthru="true"/> 123 </then> 124 <elseif> 125 <os family="windows"/> 126 <then> 127 <!-- must be backslashes in first case or PHP_CodeSniffer doesn't find own sniffs --> 128 <exec command="phpcs --standard=${stubbles.base.dir}\src\main\php\org\stubbles\codeSniffer\Stubbles ${stubbles.base.dir}/src/${check.path}/php/net/stubbles/${namespace}" passthru="true"/> 129 </then> 130 </elseif> 131 </if> 124 132 </target> 125 133 </project>
