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

Commit

Permalink
Merge branch 'release/0.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
punkstar committed Feb 12, 2015
2 parents 98ce46d + 24c6a76 commit e01d797
Show file tree
Hide file tree
Showing 5 changed files with 829 additions and 80 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/vendor
/build
17 changes: 14 additions & 3 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="MageConfigSync" default="test">

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

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

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

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

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

<target name="install-magento">
<target name="install-magento" depends="install-deps">
<if>
<not><available type="dir" file="${magento.base_dir}" /></not>
<then>
Expand All @@ -33,4 +35,13 @@
</else>
</if>
</target>

<target name="build" depends="install-deps">
<mkdir dir="${dir.build}" />
<exec command="${bin.phar-composer} build ${project.basedir} ${dir.build}" passthru="true" />
</target>

<target name="install-deps">
<exec command="composer install" />
</target>
</project>
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@

"require": {
"php": ">=5.3.0",
"symfony/console": "v2.3.4",
"symfony/yaml": "v2.3.4"
"symfony/console": "*",
"symfony/yaml": "*"
},

"require-dev": {
"phpunit/phpunit": "3.7.*",
"ecomdev/mage-ci": "master@dev"
"ecomdev/mage-ci": "master@dev",
"clue/phar-composer": "dev-master"
},

"autoload": {
Expand Down
Loading

0 comments on commit e01d797

Please sign in to comment.