|
146 | 146 | </target> |
147 | 147 |
|
148 | 148 | <target name="cs"> |
149 | | - <if> |
150 | | - <equals arg1="${isPHP74}" arg2="true" /> |
151 | | - <then> |
152 | | - <exec |
153 | | - executable="composer" |
154 | | - logoutput="true" |
155 | | - passthru="true" |
156 | | - checkreturn="true" |
157 | | - > |
158 | | - <arg value="install"/> |
159 | | - <arg value="--working-dir"/> |
160 | | - <arg path="build-cs"/> |
161 | | - <arg value="--ansi"/> |
162 | | - </exec> |
163 | | - <exec |
164 | | - executable="build-cs/vendor/bin/phpcs" |
165 | | - logoutput="true" |
166 | | - passthru="true" |
167 | | - checkreturn="true" |
168 | | - > |
169 | | - <arg value="--colors"/> |
170 | | - <arg value="--extensions=php"/> |
171 | | - <arg value="--encoding=utf-8"/> |
172 | | - <arg value="--tab-width=4"/> |
173 | | - <arg value="--cache=tmp/cache/phpcs"/> |
174 | | - <arg value="--ignore=tests/*/data,tests/*/traits,tests/notAutoloaded,tests/*/cache,src/Reflection/SignatureMap/functionMap.php,tests/e2e/magic-setter,tests/e2e/anon-class"/> |
175 | | - <arg value="-sp"/> |
176 | | - <arg path="src"/> |
177 | | - <arg path="tests"/> |
178 | | - <arg path="compiler/src" /> |
179 | | - </exec> |
180 | | - </then> |
181 | | - </if> |
| 149 | + <exec |
| 150 | + executable="vendor/bin/phpcs" |
| 151 | + logoutput="true" |
| 152 | + passthru="true" |
| 153 | + checkreturn="true" |
| 154 | + > |
| 155 | + <arg value="--colors"/> |
| 156 | + <arg value="--extensions=php"/> |
| 157 | + <arg value="--encoding=utf-8"/> |
| 158 | + <arg value="--tab-width=4"/> |
| 159 | + <arg value="--cache=tmp/cache/phpcs"/> |
| 160 | + <arg value="--ignore=tests/*/data,tests/*/traits,tests/notAutoloaded,tests/*/cache,src/Reflection/SignatureMap/functionMap.php,tests/e2e/magic-setter,tests/e2e/anon-class"/> |
| 161 | + <arg value="-sp"/> |
| 162 | + <arg path="src"/> |
| 163 | + <arg path="tests"/> |
| 164 | + <arg path="compiler/src" /> |
| 165 | + </exec> |
182 | 166 | </target> |
183 | 167 |
|
184 | 168 | <target name="cs-fix"> |
185 | 169 | <exec |
186 | | - executable="build-cs/vendor/bin/phpcbf" |
| 170 | + executable="vendor/bin/phpcbf" |
187 | 171 | logoutput="true" |
188 | 172 | passthru="true" |
189 | 173 | checkreturn="true" |
|
206 | 190 |
|
207 | 191 | <target name="tests"> |
208 | 192 | <exec |
209 | | - executable="${phpunit.executable}" |
210 | | - logoutput="true" |
211 | | - passthru="true" |
212 | | - checkreturn="true" |
| 193 | + executable="php" |
| 194 | + logoutput="true" |
| 195 | + passthru="true" |
| 196 | + checkreturn="true" |
213 | 197 | > |
| 198 | + <arg value="-d"/> |
| 199 | + <arg value="memory_limit=768M"/> |
| 200 | + <arg path="${phpunit.executable}"/> |
214 | 201 | <arg value="-c"/> |
215 | 202 | <arg value="tests/phpunit.xml"/> |
216 | 203 | <arg path="tests/PHPStan"/> |
|
219 | 206 |
|
220 | 207 | <target name="tests-fast"> |
221 | 208 | <exec |
222 | | - executable="${phpunit.executable}" |
| 209 | + executable="php" |
223 | 210 | logoutput="true" |
224 | 211 | passthru="true" |
225 | 212 | checkreturn="true" |
226 | 213 | > |
| 214 | + <arg value="-d"/> |
| 215 | + <arg value="memory_limit=768M"/> |
| 216 | + <arg path="${phpunit.executable}"/> |
227 | 217 | <arg value="-c"/> |
228 | 218 | <arg value="tests/phpunit.xml"/> |
229 | 219 | <arg value="--exclude-group"/> |
|
234 | 224 |
|
235 | 225 | <target name="tests-fast-static-reflection"> |
236 | 226 | <exec |
237 | | - executable="${phpunit.executable}" |
| 227 | + executable="php" |
238 | 228 | logoutput="true" |
239 | 229 | passthru="true" |
240 | 230 | checkreturn="true" |
241 | 231 | > |
| 232 | + <arg value="-d"/> |
| 233 | + <arg value="memory_limit=768M"/> |
| 234 | + <arg path="${phpunit.executable}"/> |
242 | 235 | <arg value="-c"/> |
243 | 236 | <arg value="tests/phpunit.xml"/> |
244 | 237 | <arg value="--exclude-group"/> |
|
0 commit comments