Skip to content

Commit

Permalink
chore(travis): exclude tag for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
euskadi31 committed Feb 23, 2016
1 parent 2e06e76 commit 8116967
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ php:
- 7.0
- nightly
- hhvm
branches:
except:
- /^v\d+\.\d+\.\d+*$/
install:
- git clone https://github.com/edenhill/librdkafka.git && cd librdkafka && ./configure && make && sudo make install && cd ../
- git clone https://github.com/arnaud-lb/php-rdkafka.git && cd php-rdkafka/ && phpize && ./configure && make && sudo make install && cd ../
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ while (true) {
// The second argument is the timeout.
$msg = $topic->consume(0, 1000);

if (empty($msg)) {
continue;
}

if ($msg->err) {
echo $msg->errstr() . PHP_EOL;
break;
Expand Down

0 comments on commit 8116967

Please sign in to comment.