33 lines
638 B
YAML
33 lines
638 B
YAML
language: php
|
|
|
|
sudo: false
|
|
|
|
php:
|
|
- 5.3
|
|
- 5.4
|
|
- 5.5
|
|
- 5.6
|
|
- hhvm
|
|
|
|
env:
|
|
- WP_VERSION=latest WP_MULTISITE=0
|
|
- WP_VERSION=4.1 WP_MULTISITE=0
|
|
- WP_VERSION=4.0 WP_MULTISITE=0
|
|
- WP_VERSION=3.9.2 WP_MULTISITE=0
|
|
|
|
matrix:
|
|
include:
|
|
- php: 5.3
|
|
env: WP_VERSION=latest WP_MULTISITE=1
|
|
|
|
before_script:
|
|
- bash tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION
|
|
- bash tests/bin/travis.sh before
|
|
|
|
script: phpunit -c phpunit.xml.dist
|
|
|
|
after_script:
|
|
- bash tests/bin/travis.sh after
|
|
- wget https://scrutinizer-ci.com/ocular.phar
|
|
- php ocular.phar code-coverage:upload --format=php-clover ./tmp/clover.xml
|