sudo: false language: php php: - 5.5 - 5.6 - 7.0 - 7.1 - 7.2 cache: directories: - vendor - $HOME/.composer/cache env: matrix: - DEPENDENCIES=latest - DEPENDENCIES=oldest install: - > echo; if [ "$DEPENDENCIES" = "latest" ]; then echo "Installing the latest dependencies"; composer update --with-dependencies --prefer-stable --prefer-dist else echo "Installing the lowest dependencies"; composer update --with-dependencies --prefer-stable --prefer-dist --prefer-lowest fi; composer show; before_script: - | if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then phpenv config-rm xdebug.ini else echo "xdebug.ini does not exist" fi - vendor/bin/phpcs --config-set encoding utf-8 - if [ "$GITHUB_COMPOSER_AUTH" ]; then composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH; fi script: # Run PHP lint on all PHP files. - find Classes/ Tests/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l # Check the coding style. - vendor/bin/phpcs --standard=Configuration/PhpCodeSniffer/Standards/Emogrifier/ Classes/ Tests/ # Run the unit tests. - vendor/bin/phpunit Tests/