|
100 | 100 | </antcall>
|
101 | 101 | </target>
|
102 | 102 |
|
103 |
| - <target name="unscoped-phar" depends="-phar-prepare,-phar-determine-version" description="Create PHAR archive of PHPUnit and all its dependencies"> |
| 103 | + <target name="unscoped-phar" depends="-phar-prepare,-phar-determine-version" description="Create unscoped PHAR archive of PHPUnit and all its dependencies"> |
104 | 104 | <antcall target="-phar-build">
|
105 | 105 | <param name="type" value="release"/>
|
106 | 106 | <param name="scope" value="false"/>
|
|
114 | 114 | </antcall>
|
115 | 115 | </target>
|
116 | 116 |
|
117 |
| - <target name="unscoped-phar-snapshot" depends="-phar-prepare" description="Create PHAR archive of PHPUnit and all its dependencies (snapshot)"> |
| 117 | + <target name="unscoped-phar-snapshot" depends="-phar-prepare" description="Create unscoped PHAR archive of PHPUnit and all its dependencies (snapshot)"> |
118 | 118 | <antcall target="-phar-build">
|
119 | 119 | <param name="type" value="snapshot"/>
|
120 | 120 | <param name="scope" value="false"/>
|
|
449 | 449 | <exec executable="${basedir}/build/scripts/version.php" outputproperty="version" failonerror="true" />
|
450 | 450 | </target>
|
451 | 451 |
|
| 452 | + <target name="run-regular-tests-with-unscoped-phar" depends="clean,unscoped-phar-snapshot" description="Build unscoped PHAR snapshot and run the regular test suite with it"> |
| 453 | + <exec executable="${basedir}/tools/phpab" taskname="phpab" failonerror="true"> |
| 454 | + <arg value="--output" /> |
| 455 | + <arg path="${basedir}/tests/autoload.php" /> |
| 456 | + <arg path="${basedir}/tests/_files" /> |
| 457 | + <arg path="${basedir}/tests/end-to-end/execution-order/_files" /> |
| 458 | + <arg path="${basedir}/tests/unit" /> |
| 459 | + </exec> |
| 460 | + |
| 461 | + <delete dir="${basedir}/vendor"/> |
| 462 | + <delete file="${basedir}/composer.lock"/> |
| 463 | + |
| 464 | + <exec executable="${basedir}/build/artifacts/phpunit-snapshot.phar" taskname="phpunit" failonerror="true"> |
| 465 | + <arg value="--testsuite" /> |
| 466 | + <arg value="unit" /> |
| 467 | + </exec> |
| 468 | + |
| 469 | + <delete file="${basedir}/tests/autoload.php"/> |
| 470 | + </target> |
| 471 | + |
| 472 | + <target name="run-phar-specific-tests-with-scoped-phar" depends="clean,phar-snapshot" description="Build scoped PHAR snapshot and run the PHAR-specific tests with it"> |
| 473 | + <delete dir="${basedir}/vendor"/> |
| 474 | + <delete file="${basedir}/composer.lock"/> |
| 475 | + |
| 476 | + <exec executable="${basedir}/build/artifacts/phpunit-snapshot.phar" taskname="phpunit" failonerror="true"> |
| 477 | + <arg value="--configuration" /> |
| 478 | + <arg value="tests/phar/phpunit.xml" /> |
| 479 | + <arg value="--coverage-text" /> |
| 480 | + </exec> |
| 481 | + </target> |
| 482 | + |
452 | 483 | <target name="generate-project-documentation" depends="-phploc,-checkstyle,-phpunit">
|
453 | 484 | <exec executable="${basedir}/tools/phpdox" dir="${basedir}/build/config" taskname="phpdox"/>
|
454 | 485 | </target>
|
|
0 commit comments