source: branches/version-2_12-multilang/build.xml @ 22144

Revision 22144, 1.2 KB checked in by h_yoshimoto, 9 years ago (diff)

#1955 r22123r22143 間のコミットをmerge

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="EC-CUBE" basedir="." default="test">
3  <!-- Jenkins上でのみ実行するタスク -->
4  <target name="prepare-jenkins">
5    <copy overwrite="true" file="data/config/config.php.jenkins" tofile="data/config/config.php"/>
6    <copy overwrite="true" file="tests/phpunit.xml.jenkins" tofile="tests/phpunit.xml"/>
7  </target>
8
9  <target name="test">
10    <delete>
11      <fileset dir="data/cache">
12        <include name="*"/>
13      </fileset>
14    </delete>
15    <delete dir="reports" includeemptydirs="true" />
16    <mkdir dir="reports/coverage" />
17    <exec dir="."
18      command="phpunit --log-tap reports/tap.log
19               --log-junit reports/unitreport.xml
20                       --coverage-html reports/coverage
21                       --coverage-clover reports/coverage/coverage.xml
22                       --configuration tests/phpunit.xml
23                       tests/" />
24  </target>
25  <target name="checkstyle">
26    <exec command="phpcs --standard=tests/ruleset.xml
27    --report=checkstyle
28    --extensions=php
29    -pv data/
30    --report-file=reports/checkstyle.xml
31    --ignore=data/module,data/Smarty,data/smarty_extends" />
32  </target>
33</project>
Note: See TracBrowser for help on using the repository browser.