2017-09-23 18:55:47 +02:00
|
|
|
dist: trusty
|
2016-08-26 17:21:39 +02:00
|
|
|
language: php
|
|
|
|
php:
|
|
|
|
- '5.6'
|
|
|
|
- '7.0'
|
|
|
|
- hhvm
|
|
|
|
- nightly
|
|
|
|
|
2017-09-23 18:55:47 +02:00
|
|
|
before_install:
|
|
|
|
# Circumvent a bug in current Travis CI builds using Ubuntu Trusty, where the
|
|
|
|
# include_path is wrong.
|
|
|
|
#
|
|
|
|
# Default is:
|
|
|
|
# - include_path='.:/home/travis/.phpenv/versions/5.6.31/share/pear'
|
|
|
|
#
|
|
|
|
# Should be:
|
|
|
|
# - include_path='.:/home/travis/.phpenv/versions/5.6.31/lib/php/pear'
|
|
|
|
#
|
|
|
|
# This applies to all builds except hhvm and nightly. Once the distro is fixed
|
|
|
|
# the following line can be removed
|
|
|
|
- if [[ ${TRAVIS_PHP_VERSION:0:1} == "5" || ${TRAVIS_PHP_VERSION:0:1} == "7" ]]; then echo "include_path='.:/home/travis/.phpenv/versions/$(phpenv version-name)/lib/php/pear'" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
|
|
|
|
|
2016-08-26 17:21:39 +02:00
|
|
|
install:
|
2017-09-23 18:05:09 +02:00
|
|
|
- pear channel-update pear.php.net
|
2016-08-26 17:21:39 +02:00
|
|
|
- pear install PHP_CodeSniffer
|
|
|
|
|
|
|
|
script:
|
|
|
|
- phpenv rehash
|
2016-09-10 19:10:42 +02:00
|
|
|
- phpcs . --standard=phpcs.xml --warning-severity=0 --extensions=php -p
|
|
|
|
|
|
|
|
matrix:
|
2016-09-10 19:12:55 +02:00
|
|
|
fast_finish: true
|
2016-09-10 19:10:42 +02:00
|
|
|
allow_failures:
|
|
|
|
- php: hhvm
|
|
|
|
- php: nightly
|