.travis.yml
language: php
php:
- 7.0
- 7.1
- 7.2
env:
global:
- WP_CLI_BIN_DIR=/tmp/wp-cli-phar WP_CLI_CONFIG_PATH=/tmp/wp-cli-phar/config.yml
- WP_VERSION=trunk
- WP_VERSION=4.8.1
install:
- composer install --prefer-source
- bash ./bin/install-package-tests.sh
before_script:
- mkdir -p build/logs
script:
- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- ./vendor/bin/behat
after_script:
- if [ $CODECLIMATE_REPO_TOKEN ]; then ./vendor/bin/test-reporter; fi;
cache:
directories:
- vendor/
notifications:
email: false