|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <project name="MageConfigSync" default="test">
|
3 | 3 |
|
| 4 | + <property name="bin.phar-composer" value="vendor/bin/phar-composer" /> |
4 | 5 | <property name="bin.mage-ci" value="vendor/bin/mage-ci" />
|
5 | 6 | <property name="bin.phpunit" value="vendor/bin/phpunit -c ${project.basedir}/phpunit.xml" />
|
| 7 | + <property name="dir.build" value="${project.basedir}/build/" /> |
6 | 8 |
|
7 | 9 | <property name="magento.version" value="1.7.0.2" />
|
8 | 10 | <property name="magento.base_dir" value="${project.basedir}/magento" />
|
|
14 | 16 |
|
15 | 17 | <target name="test" depends="test-unit,test-integration" />
|
16 | 18 |
|
17 |
| - <target name="test-unit"> |
| 19 | + <target name="test-unit" depends="install-deps"> |
18 | 20 | <exec command="${bin.phpunit} --exclude-group integration" passthru="true" />
|
19 | 21 | </target>
|
20 | 22 |
|
21 |
| - <target name="test-integration" depends="install-magento"> |
| 23 | + <target name="test-integration" depends="install-magento,install-deps"> |
22 | 24 | <exec command="${bin.phpunit} --group integration" passthru="true" />
|
23 | 25 | </target>
|
24 | 26 |
|
25 |
| - <target name="install-magento"> |
| 27 | + <target name="install-magento" depends="install-deps"> |
26 | 28 | <if>
|
27 | 29 | <not><available type="dir" file="${magento.base_dir}" /></not>
|
28 | 30 | <then>
|
|
33 | 35 | </else>
|
34 | 36 | </if>
|
35 | 37 | </target>
|
| 38 | + |
| 39 | + <target name="build" depends="install-deps"> |
| 40 | + <mkdir dir="${dir.build}" /> |
| 41 | + <exec command="${bin.phar-composer} build ${project.basedir} ${dir.build}" passthru="true" /> |
| 42 | + </target> |
| 43 | + |
| 44 | + <target name="install-deps"> |
| 45 | + <exec command="composer install" /> |
| 46 | + </target> |
36 | 47 | </project>
|
0 commit comments