|
7 | 7 | <delete dir="${basedir}/build/artifacts"/>
|
8 | 8 | <delete dir="${basedir}/build/tmp"/>
|
9 | 9 | <delete dir="${basedir}/vendor"/>
|
10 |
| - <delete file="${basedir}/composer.lock"/> |
11 | 10 |
|
12 | 11 | <property name="clean.done" value="true"/>
|
13 | 12 | </target>
|
|
30 | 29 | </target>
|
31 | 30 |
|
32 | 31 | <target name="-dependencies-installed">
|
33 |
| - <available file="${basedir}/composer.lock" property="dependencies-installed"/> |
| 32 | + <available type="dir" file="${basedir}/vendor" property="dependencies-installed"/> |
34 | 33 | </target>
|
35 | 34 |
|
36 | 35 | <target name="install-dependencies" unless="dependencies-installed" depends="-dependencies-installed,validate-composer-json" description="Install dependencies with Composer">
|
37 | 36 | <copy file="${basedir}/composer.json" tofile="${basedir}/build/tmp/composer.json"/>
|
| 37 | + <copy file="${basedir}/composer.lock" tofile="${basedir}/build/tmp/composer.lock"/> |
38 | 38 |
|
39 | 39 | <exec executable="${basedir}/tools/composer" taskname="composer">
|
40 | 40 | <arg value="require"/>
|
|
50 | 50 | </exec>
|
51 | 51 |
|
52 | 52 | <move file="${basedir}/build/tmp/composer.json" tofile="${basedir}/composer.json"/>
|
| 53 | + <move file="${basedir}/build/tmp/composer.lock" tofile="${basedir}/composer.lock"/> |
53 | 54 | </target>
|
54 | 55 |
|
55 | 56 | <target name="check-dependencies" description="Performs check for outdated dependencies">
|
|
435 | 436 |
|
436 | 437 | <target name="build-phar-and-run-phar-specific-tests" depends="clean,phar-snapshot" description="Build PHAR and run the PHAR-specific tests with it">
|
437 | 438 | <delete dir="${basedir}/vendor"/>
|
438 |
| - <delete file="${basedir}/composer.lock"/> |
439 | 439 |
|
440 | 440 | <antcall target="run-phar-specific-tests"/>
|
441 | 441 | </target>
|
|
450 | 450 |
|
451 | 451 | <target name="build-phar-and-run-phar-specific-tests-without-code-coverage" depends="clean,phar-snapshot" description="Build PHAR and run the PHAR-specific tests with it without code coverage">
|
452 | 452 | <delete dir="${basedir}/vendor"/>
|
453 |
| - <delete file="${basedir}/composer.lock"/> |
454 | 453 |
|
455 | 454 | <antcall target="run-phar-specific-tests-without-code-coverage"/>
|
456 | 455 | </target>
|
|
0 commit comments