Skip to content

Commit

Permalink
Adding a check for PHP version to avoid trait fails on 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrainbow committed Jul 27, 2012
1 parent e72661e commit e68e710
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ before_script:
- ./tests/redis-installer.sh
- composer install --dev

script: phpunit -c phpunit.xml.dist --coverage-text
# 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

0 comments on commit e68e710

Please sign in to comment.