Skip to content

Instantly share code, notes, and snippets.

@sursir
Created November 19, 2017 17:13
Show Gist options
  • Save sursir/8aca261ec15dafd22dfb4b67bcd1f60e to your computer and use it in GitHub Desktop.
Save sursir/8aca261ec15dafd22dfb4b67bcd1f60e to your computer and use it in GitHub Desktop.
build
######################
### 环境
######################
# `.phar` need `bz2` module
sudo apt-get update
sudo apt-get install php-bz2
php -m | grep bz2
# `phpunit` need xdebug
sudo apt-get install php-xdebug
# 安装 xdebug, ubuntu 需要手动链接 `/etc/php/7.1/mods-available/xdebug.ini` 到 `/etc/php/7.1/cli/conf.d/xdebug.ini`
cd /etc/php/7.1/cli/conf.d
sudo ln -s /etc/php/7.1/mods-available/xdebug.ini
# 在项目目录下
## build.xml 在根目录下 (> ant)
## build 目录包含 各模块 xml 如:phpunit.xml phploc.xml 等 (> phpunit)
## 在 xml 配置目录下可直接使用命令
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment