Skip to content

Phing task to send messages to a HipChat room

Notifications You must be signed in to change notification settings

PopSugar/phing-hipchat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phing-hipchat

Build Status

A Phing task for sending messages to a HipChat room.

Installation

The preferred way of installation is through Composer. Add rcrowe\phing-hipchat as a requirement to composer.json:

{
    "require": {
        "rcrowe/phing-hipchat": "0.1.*"
    }
}

Example

Let Phing know about the Hipchat task:

<taskdef name="hipchat" classname="rcrowe\Hippy\PhingTask" />

Basic example

<hipchat
	token="23k4l4jkl234jl234kl24"
    room="Hippy"
	from="Rob Crowe"
    notify="false"
	background="green"
    msg="build passed" />

All attributes apart from notify and background are required.

Properties file

You can also define the attributes as properties (I like to keep mine in a properties file).

<property name="hipchat.token" value="23k4l4jkl234jl234kl24" />
<property name="hipchat.room" value="Hippy" />
<property name="hipchat.from" value="Build Bot" />
<property name="hipchat.notify" value="true" />
<property name="hipchat.background" value="random" />

<hipchat html="<a>Build failed</a>" />

<hipchat>
	<queue msg="Test 1" />
    <queue msg="Test 2" />
	<queue msg="Test 3" />
</hipchat>

Tests

To run all tests

$> ./vendor/bin/phpunit tests

License

phing-hippy is released under the MIT public license.

About

Phing task to send messages to a HipChat room

Resources

Stars

Watchers

Forks

Packages

No packages published