This repository has been archived by the owner on Dec 11, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
42 lines (38 loc) · 1.62 KB
/
build.xml
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
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="UTF-8"?>
<project name="CI-Flash" description="A flash message implementation, with multi-types" default="sniff">
<!-- ============================================ -->
<!-- Target: clean -->
<!-- ============================================ -->
<target name="clean" description="Remove old checkstyle reports.">
<echo>Deleting old checkstyle reports...</echo>
<delete file="checkstyle.xml" />
<echo>[Complete]</echo>
</target>
<!-- ============================================ -->
<!-- Target: lint -->
<!-- ============================================ -->
<target name="lint" description="Check syntax of source code.">
<echo>Linting...</echo>
<phplint haltonfailure="true">
<fileset dir="libraries">
<include name="**/*.php"/>
</fileset>
</phplint>
<echo>[Complete]</echo>
</target>
<!-- ============================================ -->
<!-- [DEFAULT] Target: sniff -->
<!-- ============================================ -->
<target name="sniff" description="Check source code follows the CodeIgniter guidelines." depends="clean,lint">
<echo>Sniffing...</echo>
<!-- standard: http://github.com/thomas-ernest/CodeIgniter-for-PHP_CodeSniffer -->
<phpcodesniffer format="full" standard="CodeIgniter" showWarnings="true" haltonerror="true">
<fileset dir="libraries">
<include name="**/*.php"/>
</fileset>
<formatter type="default" usefile="false" />
<formatter type="checkstyle" outfile="checkstyle.xml" />
</phpcodesniffer>
<echo>[Complete]</echo>
</target>
</project>