mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 11:10:57 +01:00
Packaging-specific build target
This commit is contained in:
11
build.xml
11
build.xml
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="gitlist" default="build">
|
||||
<target name="build" depends="prepare,lint,phploc,pdepend,phpmd,phpcpd,phpunit,package" />
|
||||
<target name="build" depends="prepare,lint,phploc,pdepend,phpmd,phpcpd,phpunit" />
|
||||
<target name="build-package" depends="prepare-package,lint,phploc,pdepend,phpmd,phpcpd,phpunit,package" />
|
||||
|
||||
<target name="clean" description="Clean build artifacts">
|
||||
<delete dir="${basedir}/build"/>
|
||||
@@ -15,6 +16,14 @@
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="prepare-package" depends="clean" description="Prepare for build">
|
||||
<mkdir dir="${basedir}/build/logs"/>
|
||||
<mkdir dir="${basedir}/build/pdepend"/>
|
||||
<exec executable="composer" failonerror="true">
|
||||
<arg value="install" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="lint" description="Perform syntax check of sourcecode files">
|
||||
<apply executable="php" failonerror="true">
|
||||
<arg value="-l" />
|
||||
|
||||
Reference in New Issue
Block a user