Permalink
Browse files

Add ABC build setup

  • Loading branch information...
1 parent 1beba93 commit a65a9256b239597dc46b700a2e608a1038a8b1fb @beberlei beberlei committed Apr 3, 2013
Showing with 66 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +3 −0 .gitmodules
  3. +14 −0 build.properties
  4. +44 −0 build.xml
  5. +1 −0 setup
View
@@ -1,2 +1,6 @@
vendor
refactor.phar
+.abc
+.pear
+build/
+composer.phar
View
@@ -0,0 +1,3 @@
+[submodule "setup"]
+ path = setup
+ url = git://github.com/Qafoo/build-commons.git
View
@@ -0,0 +1,14 @@
+project.name = PHP Refactoring Browser
+project.version = 0.0.1
+project.stability = alpha
+
+# The commons based directory will be used to calculate several build related
+# paths and directories. Therefore we will keep it separated and independent for
+# each component in the component's basedir.
+commons.basedir = ${basedir}
+
+# Base directories with PHP source and test files
+commons.srcdir = ${basedir}/src/main
+commons.srcdir.php = ${basedir}/src/main
+commons.testdir.php = ${basedir}/src/test
+
View
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="myProject" default="verify" basedir=".">
+ <!-- Import project specific settings -->
+ <property file="build.properties" />
+
+ <!-- Import the build commons framework -->
+ <import file="setup/src/main/xml/base.xml" />
+
+ <target name="-composer:dependencies-install"
+ depends="-composer:dependencies-lock-up2date"
+ unless="-composer:dependencies.lock.up2date">
+
+ <exec executable="${commons.executable.php}" failonerror="true">
+ <arg value="${composer.executable}" />
+ <arg value="install" />
+ <arg value="--dev" />
+ </exec>
+
+ <touch file="${composer.up2date.file}" />
+ </target>
+
+ <target name="composer:dependencies-update"
+ depends="composer:dependencies-lock-exists"
+ unless="composer:dependencies.lock.exists">
+
+ <exec executable="${commons.executable.php}" failonerror="true">
+ <arg value="${composer.executable}" />
+ <arg value="update" />
+ <arg value="--dev" />
+ </exec>
+ </target>
+
+ <target name="behat"
+ extensionOf="-test:after~hook">
+ <exec executable="${commons.executable.php}" failonerror="true" dir="${basedir}">
+ <arg value="vendor/bin/behat" />
+
+ <arg value="--format" />
+ <arg value="junit,progress" />
+ <arg value="--out" />
+ <arg value="${commons:logsdir}," />
+ </exec>
+ </target>
+</project>
Submodule setup added at 37629a

0 comments on commit a65a925

Please sign in to comment.