Skip to content
This repository was archived by the owner on Jan 6, 2022. It is now read-only.

Commit e01d797

Browse files
committed
Merge branch 'release/0.3.1'
2 parents 98ce46d + 24c6a76 commit e01d797

File tree

5 files changed

+829
-80
lines changed

5 files changed

+829
-80
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/vendor
2+
/build

build.xml

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project name="MageConfigSync" default="test">
33

4+
<property name="bin.phar-composer" value="vendor/bin/phar-composer" />
45
<property name="bin.mage-ci" value="vendor/bin/mage-ci" />
56
<property name="bin.phpunit" value="vendor/bin/phpunit -c ${project.basedir}/phpunit.xml" />
7+
<property name="dir.build" value="${project.basedir}/build/" />
68

79
<property name="magento.version" value="1.7.0.2" />
810
<property name="magento.base_dir" value="${project.basedir}/magento" />
@@ -14,15 +16,15 @@
1416

1517
<target name="test" depends="test-unit,test-integration" />
1618

17-
<target name="test-unit">
19+
<target name="test-unit" depends="install-deps">
1820
<exec command="${bin.phpunit} --exclude-group integration" passthru="true" />
1921
</target>
2022

21-
<target name="test-integration" depends="install-magento">
23+
<target name="test-integration" depends="install-magento,install-deps">
2224
<exec command="${bin.phpunit} --group integration" passthru="true" />
2325
</target>
2426

25-
<target name="install-magento">
27+
<target name="install-magento" depends="install-deps">
2628
<if>
2729
<not><available type="dir" file="${magento.base_dir}" /></not>
2830
<then>
@@ -33,4 +35,13 @@
3335
</else>
3436
</if>
3537
</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>
3647
</project>

composer.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313

1414
"require": {
1515
"php": ">=5.3.0",
16-
"symfony/console": "v2.3.4",
17-
"symfony/yaml": "v2.3.4"
16+
"symfony/console": "*",
17+
"symfony/yaml": "*"
1818
},
1919

2020
"require-dev": {
2121
"phpunit/phpunit": "3.7.*",
22-
"ecomdev/mage-ci": "master@dev"
22+
"ecomdev/mage-ci": "master@dev",
23+
"clue/phar-composer": "dev-master"
2324
},
2425

2526
"autoload": {

0 commit comments

Comments
 (0)