.travis.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. dist: trusty
  2. sudo: false
  3. language: php
  4. before_install:
  5. # Circumvent a bug in current Travis CI builds using Ubuntu Trusty, where the
  6. # include_path is wrong.
  7. #
  8. # Default is:
  9. # - include_path='.:/home/travis/.phpenv/versions/5.6.31/share/pear'
  10. #
  11. # Should be:
  12. # - include_path='.:/home/travis/.phpenv/versions/5.6.31/lib/php/pear'
  13. #
  14. # This applies to all builds except hhvm and nightly. Once the distro is fixed
  15. # the following line can be removed
  16. - 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
  17. install:
  18. - pear channel-update pear.php.net
  19. - pear install PHP_CodeSniffer
  20. script:
  21. - phpenv rehash
  22. - phpcs . --standard=phpcs.xml --warning-severity=0 --extensions=php -p
  23. matrix:
  24. fast_finish: true
  25. include:
  26. - php: 5.6
  27. - php: 7.0
  28. - php: hhvm
  29. - php: nightly
  30. allow_failures:
  31. - php: hhvm
  32. - php: nightly