Add Travis CI testing

This commit is contained in:
Jeremy Mikola
2013-02-26 13:56:14 -05:00
parent 1996172dbe
commit 36fbd1c880
3 changed files with 12 additions and 5 deletions
+7
View File
@@ -0,0 +1,7 @@
language: php
php:
- 5.3
- 5.4
before_script: composer install --dev
+2
View File
@@ -1,5 +1,7 @@
# WildcardEventDispatcher
[![Build Status](https://travis-ci.org/jmikola/WildcardEventDispatcher.png?branch=master)](https://travis-ci.org/jmikola/WildcardEventDispatcher)
This library implements an event dispatcher, based on [Symfony2's interface][],
with wildcard syntax inspired by AMQP topic exchanges. Listeners may be bound to
a wildcard pattern and be notified if a dispatched event's name matches that
+2 -4
View File
@@ -1,9 +1,7 @@
<?php
if (file_exists($file = __DIR__.'/../vendor/autoload.php')) {
$loader = require_once $file;
} else {
if (!is_file($autoloadFile = __DIR__.'/../vendor/autoload.php')) {
throw new RuntimeException('Install dependencies to run test suite.');
}
$loader->add('Jmikola\\WildcardEventDispatcher', __DIR__.'/../src');
require $autoloadFile;