代码拉取完成,页面将自动刷新
同步操作将从 weiboad/kafka-php 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?xml version="1.0" encoding="UTF-8"?>
<project name="KafkaTest-php" default="build">
<target name="travis" depends="tests-parallel,show-test-results" />
<target name="local" depends="tests-parallel-local,show-test-results" />
<target name="clean" description="Cleanup build artifacts">
<delete dir="${basedir}/build"/>
</target>
<target name="prepare" depends="clean" description="Prepare for build">
<mkdir dir="${basedir}/build/test-results"/>
<mkdir dir="${basedir}/build/cs-results"/>
</target>
<target name="get-cs-fixer" depends="clean" description="Get coding standards fixer">
<get src="https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.1.0/php-cs-fixer.phar" dest="${basedir}/php-cs-fixer.phar"/>
</target>
<target name="get-cs-fixer-local" depends="clean" description="Get coding standards fixer" unless="fixer-exists">
<get src="https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.1.0/php-cs-fixer.phar" dest="${basedir}/php-cs-fixer.phar"/>
</target>
<target name="composer-install" description="Installs dependencies via composer install">
<sequential>
<exec executable="composer" failonerror="true">
<arg value="self-update" />
</exec>
<exec executable="composer" failonerror="true">
<arg value="--version" />
</exec>
</sequential>
</target>
<target
name="tests-parallel"
depends="prepare,composer-install,get-cs-fixer"
description="Run tests for the various components in parallel"
>
<parallel threadCount="8">
<!--
If there's a way of having this without the explicit component
list, please PR
<component-test component="Produce"/>
<component-test component="Protocol"/>
-->
<check-cs/>
</parallel>
</target>
<target
name="tests-parallel-local"
depends="prepare,get-cs-fixer-local"
description="Run tests for the various components in parallel"
>
<parallel threadCount="8">
<!--
If there's a way of having this without the explicit component
list, please PR
<component-test component="Produce"/>
<component-test component="Protocol"/>
-->
<check-cs/>
</parallel>
</target>
<target name="show-test-results" description="Display logged test results">
<concat>
<fileset dir="${basedir}/build/cs-results/"/>
<fileset dir="${basedir}/build/test-results/"/>
</concat>
</target>
<macrodef name="component-test">
<attribute name="component"/>
<sequential>
<echo output="${basedir}/build/test-results/@{component}.log" level="debug">
KafkaTest/@{component}
</echo>
<exec
executable="${basedir}/vendor/bin/phpunit"
output="${basedir}/build/test-results/@{component}.log"
error="${basedir}/build/test-results/@{component}.log"
failonerror="true"
append="true"
>
<arg value="-c" />
<arg value="${basedir}/tests/phpunit.xml.dist" />
<arg value="${basedir}/tests/KafkaTest/@{component}" />
</exec>
</sequential>
</macrodef>
<macrodef name="check-cs">
<sequential>
<echo output="${basedir}/build/cs-results/check-cs.log" level="debug">
Coding standards
</echo>
<exec
executable="${basedir}/bin/check-cs.sh"
output="${basedir}/build/cs-results/check-cs.log"
error="${basedir}/build/cs-results/check-cs.log"
failonerror="true"
append="true"
/>
</sequential>
</macrodef>
<condition property="fixer-exists">
<available file="${basedir}/php-cs-fixer.phar" type="file"></available>
</condition>
</project>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。