This repository has been archived by the owner on Jul 12, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
vendor | ||
refactor.phar | ||
.abc | ||
.pear | ||
build/ | ||
composer.phar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "setup"] | ||
path = setup | ||
url = git://github.com/Qafoo/build-commons.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |