mlequer / integration-setup
此包已被弃用且不再维护。没有建议的替代包。
PHP CI设置:帮助设置Phing和持续集成资源
v0.1-beta
2016-09-18 15:10 UTC
Requires
- php: >=5.6.0
- symfony/console: ^3.1
- symfony/filesystem: ^3.1
- symfony/finder: ^3.1
- symfony/process: ^3.1
- symfony/yaml: ^3.1
- twig/twig: ^1.24
Requires (Dev)
This package is auto-updated.
Last update: 2020-02-04 06:37:59 UTC
README
集成设置
这是我用来设置项目的工具。它允许多个项目之间保持设置一致性。它使用Phing,设置基于PHP项目Jenkins作业模板
脚本添加build.xml
,phpunit配置文件,phpmd设置,sonarQube设置和文档生成,使用Sami。
目前,它不支持外部模板文件夹
安装
使用以下命令安装最新版本:
$ composer require mlequer/integration-setup
使用
Usage:
setup [options] [--] <name>
Arguments:
name Project name
Options:
-d, --destination=DESTINATION Relative destination for build.xml [default: "."]
-b, --build-folder=BUILD-FOLDER Build folder [default: "build"]
-r, --resources=RESOURCES Destination folder for the resources [default: "Resources"]
-s, --source=SOURCE Source folder [default: "src"]
-t, --tests=TESTS Tests folder [default: "tests"]
-c, --configuration[=CONFIGURATION] configuration file
-e, --exclude=EXCLUDE Exclude folders [default: ["vendor","build"]] (multiple values allowed)
-x, --extensions=EXTENSIONS File extensions [default: ["php"]] (multiple values allowed)
--dry-run Dry run
--skip-composer Skip composer update
-g, --generate-config Generate config from parameters
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
或使用yaml配置文件
$ bin/console setup PHPCISetup -c .ci-setup.yml