sandergerritsen/gerritci
Composer 安装命令:
composer require sandergerritsen/gerritci
包简介
Continuous Integration using Composer
README 文档
README
Continuous integration for PHP projects using composer.
Use composer for development and production
The goals for this project is to have one single composer.json file to be used in both development and production.
- For development we need a few packages installed locally
- For production we like composer to get all data from remote GIT repositories
Usage
- Setup your composer.json file for development
- Use
@devordev-masteras tag name - Add a
repositorywithtype: 'path'url: '../../packages/my-package', reference you locally cloned package
- Use
>Example:
{ "require": { "my-vendor/my-package": "@dev" }, "repositories": [ { "name": "my-vendor/my-package", "type": "path", "url": "../../packages/my-package", "options": { "symlink": false } } ] }
- Add production configuration to the
"extra": { }part- GerritCI will overwrite the
tag,typeandurlvalues in therequiresection, linked by the package name{ "extra": { "gerritci": { "my-vendor/my-package": { "tag": "1.0.*", "repository": { "type": "vcs", "url": "git@gitlab.com:sandergerritsen/my-package.git" } } } } }
- GerritCI will overwrite the
- After successfully running
gerritcicommand line, runcomposer updateto update the composer.lock file- Or maybe better: run
composer update phpunit/phpunit. Select any package from yourrequire-devsection. That will only update that single package. And as this is a dev requirement only, it will not unintentionally update any packages used in a production environment.
- Or maybe better: run
统计信息
- 总下载量: 30
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-05