定制 sandergerritsen/gerritci 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 @dev or dev-master as tag name
    • Add a repository with
      • type: 'path'
      • url: '../../packages/my-package', reference you locally cloned package

>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, type and url values in the require section, 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"
                  }
              }
          }
      }
      }
      
  • After successfully running gerritci command line, run composer update to update the composer.lock file
    • Or maybe better: run composer update phpunit/phpunit. Select any package from your require-dev section. 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.

统计信息

  • 总下载量: 30
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固