language: php php: - 7.1 - 7.2 - 7.3 notifications: email: on_success: never on_failure: change branches: only: - master cache: apt: true directories: - node_modules - $HOME/.composer/cache matrix: fast_finish: true include: - php: 7.3 env: WP_VERSION=latest WP_MULTISITE=0 - php: 7.2 env: WP_VERSION=latest WP_MULTISITE=0 - php: 7.1 env: WP_VERSION=latest WP_MULTISITE=0 install: - phpenv config-rm xdebug.ini || echo 'No xdebug config.' - composer install --no-interaction --no-suggest - phpenv rehash script: # Search for PHP syntax errors. - find -L . -path ./vendor -prune -o -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l # Run PHPCS. - composer phpcs