1 Star 0 Fork 1

陈强/boxbilling

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.xml 5.20 KB
一键复制 编辑 原始数据 按行查看 历史
evrifaessa 提交于 2020-11-26 17:12 . Update build.xml
<?xml version="1.0"?>
<project name="BoxBilling" default="build" basedir=".">
<property environment="env" />
<property name="build.dir" value="${basedir}/build" />
<property name="dist.dir" value="${build.dir}/distribution" />
<property name="documentation" value="${build.dir}/documentation" />
<property name="source" value="${build.dir}/source" />
<fileset id="shared-artifacts" dir=".">
<include name="LICENSE"/>
<include name="README.md"/>
<include name="CHANGELOG.md"/>
</fileset>
<fileset id="api-sources" dir="src" followsymlinks="false">
<include name="bb-data/log"/>
<include name="bb-data/cache"/>
<include name="bb-data/uploads"/>
<include name="bb-data/index.html"/>
<include name="bb-data/.htaccess"/>
<exclude name="bb-data/log/*"/>
<exclude name="bb-data/cache/*"/>
<exclude name="bb-data/uploads/*"/>
<include name="bb-vendor/**"/>
<include name="bb-library/**"/>
<include name="bb-modules/**"/>
<include name="bb-locale/**"/>
<include name="bb-themes/**"/>
<include name="bb-uploads/**"/>
<include name="install/**"/>
<include name="bb-config-sample.php"/>
<include name="bb-cron.php"/>
<include name="bb-di.php"/>
<include name="bb-ipn.php"/>
<include name="bb-load.php"/>
<include name="bb-update.php"/>
<include name="rb.php"/>
<include name="index.php"/>
<include name="robots.txt"/>
<include name="htaccess.txt"/>
<exclude name="bb-library/Server/Manager/Directadmin.php"/>
<exclude name="bb-library/Server/Manager/Ispconfig3.php"/>
<exclude name="bb-library/Server/Manager/Plesk.php"/>
<exclude name="bb-library/Server/Manager/MOFH.php"/>
<exclude name="bb-library/Server/Manager/Virtualmin.php"/>
<exclude name="bb-library/Registrar/includes/**"/>
</fileset>
<target name="clean" description="Clean up and create artifact directories">
<delete dir="src/bb-data/cache"/>
<mkdir dir="src/bb-data/cache"/>
<delete dir="${build.dir}"/>
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.dir}/code-browser"/>
<mkdir dir="${build.dir}/coverage"/>
<mkdir dir="${build.dir}/logs"/>
<mkdir dir="${build.dir}/pdepend"/>
<mkdir dir="${build.dir}/update"/>
<mkdir dir="${dist.dir}"/>
<mkdir dir="${source}"/>
</target>
<target name="clean-vendors" description="Clean up bb-vendors dir for dev dependencies">
<delete dir="src/bb-vendor"/>
<mkdir dir="src/bb-vendor"/>
</target>
<target name="composer" description="Update composer dependencies" depends="clean-vendors">
<exec executable="composer" failonerror="true">
<arg line="install --working-dir=src --no-dev --optimize-autoloader --prefer-dist" />
</exec>
</target>
<target name="composer-dev" description="Update composer dependencies">
<exec executable="composer" failonerror="true">
<arg line="install --working-dir=src --optimize-autoloader --prefer-dist" />
</exec>
</target>
<target name="config" description="Create config file">
<copy file="src/bb-config-sample.php" tofile="src/bb-config.php" overwrite="true"/>
</target>
<target name="test-unit">
<exec executable="src/bb-vendor/bin/phpunit" failonerror="true">
<arg line="tests/bb-library/" />
</exec>
<exec executable="src/bb-vendor/bin/phpunit" failonerror="true">
<arg line="tests/bb-modules/" />
</exec>
</target>
<target name="test-integration">
<exec executable="php" dir="bin" failonerror="true">
<arg line="prepare.php" />
</exec>
<exec executable="src/bb-vendor/bin/phpunit" failonerror="true">
<arg line="--group Core tests/integration/" />
</exec>
</target>
<target name="test-modules">
<exec executable="src/bb-vendor/bin/phpunit" failonerror="true">
<arg line="src/bb-modules/" />
</exec>
</target>
<target name="build-api" depends="clean">
<copy todir="${source}">
<fileset refid="shared-artifacts"/>
</copy>
<copy todir="${source}">
<fileset refid="api-sources"/>
</copy>
<property environment="env"/>
<echo message="Release TAG: ${env.TRAVIS_TAG}" />
<exec executable="sed" failonerror="true" output="${source}/bb-library/Box/Version2.php">
<arg line="s/0.0.1/${env.TRAVIS_TAG}/ ${source}/bb-library/Box/Version.php" />
</exec>
<exec executable="mv" failonerror="true">
<arg line="${source}/bb-library/Box/Version2.php ${source}/bb-library/Box/Version.php" />
</exec>
</target>
<target name="package">
<zip destfile="${dist.dir}/${ant.project.name}.zip" basedir="${source}" />
</target>
<target name="test" depends="clean, composer-dev, test-unit, test-integration, test-modules"/>
<target name="release" depends="clean, composer, build-api, package" />
<target name="build" depends="config, test"/>
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/cq88888/boxbilling.git
git@gitee.com:cq88888/boxbilling.git
cq88888
boxbilling
boxbilling
master

搜索帮助