# Travis CI configuration file. # @link https://travis-ci.org/ # For use with the Twenty Sixteen WordPress theme # @link https://github.com/WordPress/twentysixteen/ # Declare project language and PHP versions to test against. # @link http://about.travis-ci.org/docs/user/languages/php/ language: php php: - "7.0" - "5.6" - "5.5" - "5.4" - "5.3" before_script: - pear install pear/PHP_CodeSniffer - phpenv rehash # Ditch sudo and use containers. # @link http://docs.travis-ci.com/user/migrating-from-legacy/#Why-migrate-to-container-based-infrastructure%3F # @link http://docs.travis-ci.com/user/workers/container-based-infrastructure/#Routing-your-build-to-container-based-infrastructure sudo: false # Run test script commands. # Default is specific to project language. # All commands must exit with code 0 on success. Anything else is considered failure. script: # Search theme for PHP syntax errors. - find . \( -name '*.php' \) -exec php -lf {} \; - phpcs -p -s -v -n . --standard=./ruleset.xml --extensions=php