2017 © Pedro Peláez
 

library phpunityo

image

gong023/phpunityo

  • Monday, January 12, 2015
  • by gong023
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHPUnityo

Build Status, (*1)

Send Yo when PHPUnit successes or fails., (*2)

You can use at travis., (*3)

How to use

1. Set up Yo

Get api token from http://dev.justyo.co/, and export it., (*4)

export YO_API_TOKEN="xxxx"

If you want to use PHPUnityo at travis, encrypt token., (*5)

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

And add encrypted token to .travis.yml, (*6)

env:
  global:
    YO_API_TOKEN='yourencryptedtoken'

2. Setup PHPUnityo

Install PHPUnityo., (*7)

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

Add PHPUnit listener setting to your phpunit.xml.dist., (*8)

<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., (*9)

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

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

At travis-ci.org, PHPUnityo sends Yo with build URL., (*12)

The Versions