-
Notifications
You must be signed in to change notification settings - Fork 100
/
build.xml
50 lines (39 loc) · 1.67 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
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="UTF-8"?>
<project name="phpMyAdmin-webite" default="build" basedir=".">
<property name="source" value="."/>
<property name="source_comma_sep" value="."/>
<fileset dir="${source}" includes="pmaweb/static/js/utils.js" id="jsfiles" />
<pathconvert pathsep=" " property="js-list" refid="jsfiles" />
<fileset dir="${source}" includes="pmaweb/static/css/style.css" id="cssfiles" />
<pathconvert pathsep=" " property="css-list" refid="cssfiles" />
<target name="clean" description="Clean up and create artifact directories">
<delete dir="${basedir}/build"/>
<mkdir dir="${basedir}/build"/>
</target>
<target name="test" description="Runs testsuite">
<exec executable="./manage.py" failonerror="true">
<arg line="test" />
</exec>
</target>
<target name="jshint" description="Javascript checks">
<exec executable="jshint" output="${basedir}/build/jslint.xml">
<arg line="--config ./.jshintrc --jslint-reporter ${js-list}" />
</exec>
</target>
<target name="csslint" description="CSS checks">
<exec executable="csslint" output="${basedir}/build/csslint.xml">
<arg line="--format=lint-xml ${css-list}" />
</exec>
</target>
<target name="pep8" description="PEP8">
<exec executable="pep8" output="${basedir}/build/pep8.report">
<arg line="manage.py data files news pmaweb security translations" />
</exec>
</target>
<target name="pylint" description="pylint">
<exec executable="pylint" output="${basedir}/build/pylint.report">
<arg line="--rcfile=./pylint.rc manage.py data files news pmaweb security translations" />
</exec>
</target>
<target name="build" depends="clean,test,jshint,csslint,pep8,pylint"/>
</project>