Vorbereitung Phing Deployment

This commit is contained in:
oesi
2016-01-07 18:05:25 +01:00
parent b1800f7139
commit c3c8d7163b
2 changed files with 48 additions and 1 deletions
+43
View File
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="FHComplete" default="test">
<fileset dir="." id="fileset.deploy.id">
<!-- directories which should not be deployed -->
<exclude name="config/cis.config.inc.php"/>
<exclude name="config/vilesci.config.inc.php"/>
<exclude name="config/system.config.inc.php" />
<exclude name="config/global.config.inc.php" />
<exclude name="config/wawi.config.inc.php" />
<exclude name="phpdoc/**"/>
<!-- git repo -->
<exclude name=".git/**"/>
<!-- build file -->
<exclude name="build.xml"/>
</fileset>
<fileset dir="." id="phpfiles">
<include name="include/*.php" />
</fileset>
<target name="test">
<echo msg="Testing for Syntax Errors" />
<phplint>
<fileset refid="phpfiles" />
</phplint>
</target>
<!-- requires a 512M memory limit to complete -->
<target name="phpdoc">
<mkdir dir="phpdoc"/>
<phpdoc2 title="FHComplete API Documentation" destdir="phpdoc">
<fileset dir=".">
<include name="include/*.class.php" />
</fileset>
</phpdoc2>
</target>
<target name="deploy">
<echo msg="Deploying FHComplete" />
<exec command="/home/fhcomplete/UpdateFHComplete.sh" passthru="true"/>
</target>
</project>
+5 -1
View File
@@ -10,7 +10,11 @@ test:
lint:
php_loc:
php_docblock_checker:
allowed_warnings: -1
allowed_warnings: -1
# phing:
# build_file: 'build.xml'
# targets:
# - "deploy"
# php_unit:
# directory: "tests/phpunit/"
# args: "--bootstrap 'test/phpunit/bootstrap.php' --configuration 'tests/phpunit/phpunit.xml'"