定制 austp/phpci-pho-plugin 二次开发

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

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

austp/phpci-pho-plugin

最新稳定版本:1.1.3

Composer 安装命令:

composer require austp/phpci-pho-plugin

包简介

A plugin for PHPCI to run pho tests

README 文档

README

This is a plugin for PHPCI. It allows you to run pho tests via PHPCI.

Installation

  1. Navigate to your PHPCI path. cd /path/to/phpci

  2. Edit the composer.json file. nano composer.json

  3. Add "austp\/phpci-pho-plugin": "~1.1" in the "require" section.

     "require": {
       ...,
       ...,
       "austp\/phpci-pho-plugin": "~1.1"
     }
    
  4. Download the plugin via composer. composer update austp/phpci-pho-plugin

  5. Copy build-plugins/pho.js to /path/to/phpci/public/assets/js/build-plugins/pho.js

     cd /path/to/phpci/vendor/austp/phpci-pho-plugin/build-plugins
     cp pho.js /path/to/phpci/public/assets/js/build-plugins/pho.js
    

That's it as far as installation goes. Continue reading to see available options.

Configuration

In order to configure PHPCI to run pho, you need to edit the phpci.yml file. If you don't already have this file in your repository, go ahead and add it. Note: If you can't add a phpci.yml file to the repo, you can edit your project in PHPCI and configure it there.

Options

directory:  "specs/"         | The directory to run the tests on.
log:        true             | (optional) Log pho's output to PHPCI.
executable: "/path/to/pho"   | (optional) Full path to a pho executable.
bootstrap:  "bootstrap.file" | (optional) Bootstrap file to load.
filter:     "filter"         | (optional) Run specs according to this filter.
namespace:  true             | (optional) Only use namespaced functions.

phpci.yml

  1. Navigate to your repository. cd /path/to/repo

  2. Edit the phpci.yml file. nano phpci.yml

  3. Add \PHPCI_Pho_Plugin\Pho: in the "test" section.

     test:
       ...:
         ...: ...
         ...: ...
       ...:
         ...: ...
       \PHPCI_Pho_Plugin\Pho:
    
  4. Add your options under the \PHPCI_Pho_Plugin\Pho: line.

     \PHPCI_Pho_Plugin\Pho:
       directory: "specs/"
       log: true
    

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-15