Add composer and phing dependency

Signed-off-by: Diederik de Groot <ddegroot@talon.nl>
This commit is contained in:
Diederik de Groot
2020-03-18 09:04:54 +01:00
parent 822e2e5f90
commit 3621e1d6e6
5 changed files with 104 additions and 27 deletions

36
build.xml Normal file
View File

@@ -0,0 +1,36 @@
<?xml version="1.0"?>
<!-- phing build file -->
<project
name="provision_sccp"
default="build"
basedir="."
description="SCCP/Skinny Provisioner">
<target name="install">
<exec command="./composer.phar install" checkreturn="true" passthru="true"/>
<exec command="./composer.phar update" checkreturn="true" passthru="true"/>
</target>
<target name="clean">
<delete dir="build"/>
</target>
<target name="prepare">
<mkdir dir="build" mode="0755"/>
</target>
<target name="fixstyle">
<exec command="phpcbf --tab-width=4 --standard=PSR2 src test"
checkreturn="true"
passthru="false"/>
</target>
<target name="test">
<exec command="phpunit -v --debug tests"
checkreturn="true"
passthru="true"/>
</target>
<target name="build" depends="clean, prepare, test"/>
</project>