2019-06-10 16:09:42 +00:00
|
|
|
language: php
|
2019-06-11 09:31:50 +00:00
|
|
|
dist: trusty
|
2019-06-10 16:51:31 +00:00
|
|
|
sudo: required
|
2019-06-11 10:10:55 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- vendor
|
|
|
|
- $HOME/.composer/cache
|
2019-06-10 16:09:42 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2019-06-10 16:23:46 +00:00
|
|
|
- name: "PHP 7.2 unit tests, PHP Coding standards check"
|
2019-06-10 16:09:42 +00:00
|
|
|
php: 7.2
|
|
|
|
env: WP_VERSION=latest WP_MULTISITE=0 WP_CORE_DIR=/tmp/wordpress RUN_PHPCS=1
|
|
|
|
- name: "PHP 7.1 unit tests"
|
|
|
|
php: 7.1
|
|
|
|
env: WP_VERSION=latest WP_MULTISITE=0 WP_CORE_DIR=/tmp/wordpress
|
|
|
|
|
|
|
|
before_script:
|
2019-06-11 10:41:21 +00:00
|
|
|
- export PATH="$HOME/.composer/vendor/bin:$PATH"
|
2019-06-10 16:09:42 +00:00
|
|
|
- phpenv config-rm xdebug.ini
|
2019-06-11 10:37:09 +00:00
|
|
|
- composer install
|
2019-06-11 10:41:21 +00:00
|
|
|
- composer global require "phpunit/phpunit=4.8.*|6.5.*"
|
|
|
|
- composer require woocommerce/woocommerce-sniffs
|
2019-06-24 15:17:02 +00:00
|
|
|
- bash tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION
|
2019-06-10 16:09:42 +00:00
|
|
|
|
|
|
|
script:
|
2019-06-24 15:17:02 +00:00
|
|
|
- bash tests/bin/phpunit.sh
|
|
|
|
- bash tests/bin/phpcs.sh
|