定制 gong023/phpunityo 二次开发

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

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

gong023/phpunityo

最新稳定版本:0.1.0

Composer 安装命令:

composer require gong023/phpunityo

包简介

README 文档

README

Build Status

Send Yo when PHPUnit successes or fails.

You can use at travis.

How to use

1. Set up Yo

Get api token from http://dev.justyo.co/, and export it.

export YO_API_TOKEN="xxxx"

If you want to use PHPUnityo at travis, encrypt token.

gem install travis # if you need
travis encrypt -r your/repository YO_API_TOKEN=xxxx

And add encrypted token to .travis.yml

env:
  global:
    YO_API_TOKEN='yourencryptedtoken'

2. Setup PHPUnityo

Install PHPUnityo.

composer require --dev gong023/phpunityo:0.1.*

Add PHPUnit listener setting to your phpunit.xml.dist.

<listeners>
  <listener class="PHPUnit_Yo" file="vendor/gong023/src/PHPUnit_Yo.php">
    <arguments>
      <string name="sendUser">Your Name</string>
      <string name="onSuccess">false</string>
      <string name="onFailure">true</string>
    </arguments>
  </listener>
</listeners>

That's all.

If you turn onSuccess on at phpunit.xml.dist, PHPUnityo sends Yo only when test successes.

If you turn onFailure on at phpunit.xml.dist, PHPUnityo sends Yo only when test fails.

At travis-ci.org, PHPUnityo sends Yo with build URL.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-01-12