Skip to content
This repository was archived by the owner on Jul 12, 2020. It is now read-only.

Commit a65a925

Browse files
committed
Add ABC build setup
1 parent 1beba93 commit a65a925

File tree

5 files changed

+66
-0
lines changed

5 files changed

+66
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
vendor
22
refactor.phar
3+
.abc
4+
.pear
5+
build/
6+
composer.phar

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "setup"]
2+
path = setup
3+
url = git://github.com/Qafoo/build-commons.git

build.properties

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
project.name = PHP Refactoring Browser
2+
project.version = 0.0.1
3+
project.stability = alpha
4+
5+
# The commons based directory will be used to calculate several build related
6+
# paths and directories. Therefore we will keep it separated and independent for
7+
# each component in the component's basedir.
8+
commons.basedir = ${basedir}
9+
10+
# Base directories with PHP source and test files
11+
commons.srcdir = ${basedir}/src/main
12+
commons.srcdir.php = ${basedir}/src/main
13+
commons.testdir.php = ${basedir}/src/test
14+

build.xml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project name="myProject" default="verify" basedir=".">
3+
<!-- Import project specific settings -->
4+
<property file="build.properties" />
5+
6+
<!-- Import the build commons framework -->
7+
<import file="setup/src/main/xml/base.xml" />
8+
9+
<target name="-composer:dependencies-install"
10+
depends="-composer:dependencies-lock-up2date"
11+
unless="-composer:dependencies.lock.up2date">
12+
13+
<exec executable="${commons.executable.php}" failonerror="true">
14+
<arg value="${composer.executable}" />
15+
<arg value="install" />
16+
<arg value="--dev" />
17+
</exec>
18+
19+
<touch file="${composer.up2date.file}" />
20+
</target>
21+
22+
<target name="composer:dependencies-update"
23+
depends="composer:dependencies-lock-exists"
24+
unless="composer:dependencies.lock.exists">
25+
26+
<exec executable="${commons.executable.php}" failonerror="true">
27+
<arg value="${composer.executable}" />
28+
<arg value="update" />
29+
<arg value="--dev" />
30+
</exec>
31+
</target>
32+
33+
<target name="behat"
34+
extensionOf="-test:after~hook">
35+
<exec executable="${commons.executable.php}" failonerror="true" dir="${basedir}">
36+
<arg value="vendor/bin/behat" />
37+
38+
<arg value="--format" />
39+
<arg value="junit,progress" />
40+
<arg value="--out" />
41+
<arg value="${commons:logsdir}," />
42+
</exec>
43+
</target>
44+
</project>

setup

Submodule setup added at 37629af

0 commit comments

Comments
 (0)