Skip to content

Commit

Permalink
Travis CI integration
Browse files Browse the repository at this point in the history
Build PHP AMQP against PHP 5.2, 5.3 and 5.4. Ads a simple test reporter script to display
the test results in Travis.
  • Loading branch information
lstrojny committed Nov 8, 2012
1 parent 5baacb8 commit 02f7260
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: php

php:
- 5.2
- 5.3
- 5.4

services:
- rabbitmq

env:
- NO_INTERACTION=1 LIBRABBITMQ_VERSION=master

before_script:
- sh -c "git clone git://github.com/alanxz/rabbitmq-c.git"
- sh -c "cd rabbitmq-c && git checkout ${LIBRABBITMQ_VERSION}"
- sh -c "cd rabbitmq-c && git submodule init && git submodule update"
- sh -c "cd rabbitmq-c && autoreconf -i && ./configure && make && sudo make install"
- sh -c "phpize && ./configure && make"

script:
- sh -c "make test | tee result.txt"
- sh test-report.sh
- sh -c "grep -q FAILED result.txt && false"

notifications:
email:
- lstrojny@php.net
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[![Build Status](https://secure.travis-ci.org/lstrojny/php-amqp.png)](http://travis-ci.org/lstrojny/php-amqp)

# PHP AMQP bindings

Object-oriented PHP bindings for the AMQP C library (https://github.com/alanxz/rabbitmq-c)
6 changes: 6 additions & 0 deletions test-report.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
find tests -type f -and -name "*.diff" -or -name "*.out" | while read file; do
echo "FILE: ${file}"
cat "$file"
echo "\n"
done

0 comments on commit 02f7260

Please sign in to comment.