This repository was archived by the owner on Jul 2, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild.xml
More file actions
30 lines (25 loc) · 1.17 KB
/
build.xml
File metadata and controls
30 lines (25 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="utf-8" ?>
<project name="phpdoc.org" basedir="." default="stage:commit">
<property file="build.properties"/>
<target name="stage:commit" depends="build:initialize,build:phpunit,build:phpcs" />
<target name="build:initialize">
<exec executable="rm" dir="${project.basedir}" checkreturn="false" passthru="true">
<arg line="-rf build" />
</exec>
<mkdir dir="build" />
<mkdir dir="build/logs" />
<exec executable="composer" dir="${project.basedir}" checkreturn="true" passthru="true">
<arg line="install --prefer-source -o" />
</exec>
</target>
<target name="build:phpunit">
<exec executable="php" dir="${project.basedir}" checkreturn="true" passthru="true">
<arg line="bin/phpunit -c app/phpunit.xml.dist" />
</exec>
</target>
<target name="build:phpcs">
<exec executable="phpcs" dir="${project.basedir}" checkreturn="false" passthru="true">
<arg line="--report=checkstyle --report-file=${project.basedir}/build/logs/checkstyle.xml --standard=PSR2 ${project.basedir}/src" />
</exec>
</target>
</project>