mirror of
https://ghproxy.net/https://github.com/elementor/activity-log.git
synced 2025-10-04 21:35:12 +08:00
PHP 5.3 is no longer supported on the Travis build server, as it is now using Ubuntu Trusty by default. We can setup conditionals to run the PHP 5.3 tests on Ubuntu Precise, but for now we'll just remove testing on PHP 5.3.
36 lines
978 B
YAML
36 lines
978 B
YAML
# Travis CI Configuration File.
|
|
sudo: false
|
|
language: php
|
|
|
|
# PHP versions to run tests against.
|
|
php:
|
|
- 5.4
|
|
- 5.5
|
|
- 5.6
|
|
- 7.0
|
|
|
|
# WordPress versions to run tests against.
|
|
env:
|
|
- WP_VERSION=latest WP_MULTISITE=0
|
|
- WP_VERSION=latest WP_MULTISITE=1
|
|
- 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
|
|
|
|
before_script:
|
|
- 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
|
|
|
|
script: phpunit --coverage-clover=coverage.xml
|