From 36fbd1c880bde93835441fb96da7df122ef2b4c1 Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Tue, 26 Feb 2013 13:56:14 -0500 Subject: [PATCH] Add Travis CI testing --- .travis.yml | 7 +++++++ README.md | 2 ++ tests/bootstrap.php | 8 +++----- 3 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..563ac5b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: php + +php: + - 5.3 + - 5.4 + +before_script: composer install --dev diff --git a/README.md b/README.md index 940b6a4..d77bf85 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 4a8c9c0..4f9ca42 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,9 +1,7 @@ -add('Jmikola\\WildcardEventDispatcher', __DIR__.'/../src'); +require $autoloadFile;