activity-log/.travis.yml

37 lines
978 B
YAML
Raw Normal View History

# Travis CI Configuration File.
sudo: false
2014-03-11 15:48:40 +00:00
language: php
# PHP versions to run tests against.
2014-03-11 15:48:40 +00:00
php:
2014-04-15 23:37:02 +00:00
- 5.4
2015-12-14 09:36:17 +02:00
- 5.5
- 5.6
2016-01-17 17:52:00 +02:00
- 7.0
2014-03-11 15:48:40 +00:00
# WordPress versions to run tests against.
2014-03-11 15:48:40 +00:00
env:
2014-04-15 23:37:02 +00:00
- WP_VERSION=latest WP_MULTISITE=0
- WP_VERSION=latest WP_MULTISITE=1
2017-06-08 19:48:19 +03:00
- WP_VERSION=4.4 WP_MULTISITE=0
- WP_VERSION=4.4 WP_MULTISITE=1
- WP_VERSION=4.5 WP_MULTISITE=0
- WP_VERSION=4.5 WP_MULTISITE=1
- WP_VERSION=4.6 WP_MULTISITE=0
- WP_VERSION=4.6 WP_MULTISITE=1
- WP_VERSION=4.7 WP_MULTISITE=0
- WP_VERSION=4.7 WP_MULTISITE=1
2014-03-11 15:48:40 +00:00
before_script:
2014-04-15 23:37:02 +00:00
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- |
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
composer global require "phpunit/phpunit=5.7.*"
else
composer global require "phpunit/phpunit=4.8.*"
fi
- phpunit --version
2014-03-11 15:48:40 +00:00
2017-06-08 19:48:19 +03:00
script: phpunit --coverage-clover=coverage.xml