sudo: false dist: trusty language: php php: 7.2 notifications: email: on_success: never on_failure: change branches: only: - master cache: directories: - $HOME/.composer/cache env: global: - PATH="$TRAVIS_BUILD_DIR/vendor/bin:$PATH" - WP_CLI_BIN_DIR="$TRAVIS_BUILD_DIR/vendor/bin" before_install: - | # Remove Xdebug for a huge performance increase: 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 - | # Raise PHP memory limit to 2048MB echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini - composer validate install: - composer install - composer prepare-tests script: - composer phpunit - composer behat jobs: include: - stage: sniff script: # - composer lint - composer phpcs env: BUILD=sniff - stage: test php: 7.2 env: WP_VERSION=latest - stage: test php: 7.1 env: WP_VERSION=latest - stage: test php: 7.0 env: WP_VERSION=latest - stage: test php: 5.6 env: WP_VERSION=latest