承接 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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固