Rev | Line | |
---|
[22128] | 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="." |
---|
[22146] | 18 | output="reports/stdout.log" |
---|
| 19 | error="reports/stderr.log" |
---|
[22128] | 20 | command="phpunit --log-tap reports/tap.log |
---|
| 21 | --log-junit reports/unitreport.xml |
---|
| 22 | --coverage-html reports/coverage |
---|
| 23 | --coverage-clover reports/coverage/coverage.xml |
---|
| 24 | --configuration tests/phpunit.xml |
---|
| 25 | tests/" /> |
---|
| 26 | </target> |
---|
[23319] | 27 | <target name="checkstyle" description="Find coding standard violations using PHP_CodeSniffer creating a log file for the continuous integration server"> |
---|
[23320] | 28 | <exec executable="phpcs" output="/dev/null"> |
---|
[23318] | 29 | <arg line="-v |
---|
[23321] | 30 | --report=checkstyle |
---|
| 31 | --report-file=reports/checkstyle.xml |
---|
[23318] | 32 | --standard=${basedir}/tests/ruleset.xml |
---|
| 33 | --extensions=php |
---|
| 34 | --ignore=${basedir}/data/Smarty,${basedir}/data/smarty_extends,${basedir}/data/cache,${basedir}/data/module,${basedir}/data/mtb_constants_init.php |
---|
[23321] | 35 | data/" /> |
---|
[23282] | 36 | </exec> |
---|
[22128] | 37 | </target> |
---|
| 38 | </project> |
---|
Note: See
TracBrowser
for help on using the repository browser.