From e68e7108b55c29a516128cb4c4f5ac21fd29c5c0 Mon Sep 17 00:00:00 2001 From: Justin Rainbow Date: Thu, 26 Jul 2012 18:39:33 -0700 Subject: [PATCH] Adding a check for PHP version to avoid trait fails on 5.3 --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8ca6861..8b698e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,7 @@ before_script: - ./tests/redis-installer.sh - composer install --dev -script: phpunit -c phpunit.xml.dist --coverage-text \ No newline at end of file +# Traits are a no-no for PHP 5.3 - so don't run code coverage reports +script: + - if [[ "$TRAVIS_PHP_VERSION" == "5.3" ]]; then phpunit -c phpunit.xml.dist + - if [[ "$TRAVIS_PHP_VERSION" == "5.4" ]]; then phpunit -c phpunit.xml.dist --coverage-text \ No newline at end of file