forked from wikimedia/operations-mediawiki-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
42 lines (37 loc) · 971 Bytes
/
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" ?>
<!--
Ant build script to test out Wikimedia Foundation PHP configuration files
Originally written by Antoine Musso, 2012
o
With the inspiration of deadmau5.
o
To run: ant
-->
<project name="Wikimedia Foundation PHP configuration files" default="test">
<!-- Import the OS environnement: -->
<property environment="env" />
<target name="test" depends="php-lint-wmfconfig,phpunit">
</target>
<!-- dumb linter -->
<target name="php-lint-wmfconfig">
<echo>Blindly running `php -l` on files in wmf-config</echo>
<apply
executable="php"
dir="wmf-config"
relative="true"
failonerror="true"
verbose="true"
>
<arg value="-l" />
<fileset dir="./wmf-config"
includes="**/*.php"
excludes="extdist/*"
/>
</apply>
</target>
<target name="phpunit">
<exec executable="phpunit" failonerror="true">
<arg line="--log-junit ${basedir}/logs/junit.xml" />
</exec>
</target>
</project>