Skip to content

Commit

Permalink
Update travis config to handle phpunit + php7
Browse files Browse the repository at this point in the history
  • Loading branch information
mjangda committed Mar 28, 2017
1 parent fe48900 commit 3248dfc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Expand Up @@ -48,6 +48,15 @@ before_script:
- if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/scripts/phpcs --config-set installed_paths $SNIFFS_DIR; fi
# After CodeSniffer install you should refresh your path.
- if [[ "$SNIFF" == "1" ]]; then phpenv rehash; fi
# Properly handle PHPunit versions
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- |
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
composer global require "phpunit/phpunit=5.7.*"
elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
composer global require "phpunit/phpunit=4.8.*"
fi
- phpunit --version

script:
# Search for PHP syntax errors.
Expand Down

0 comments on commit 3248dfc

Please sign in to comment.