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-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:
|
|
|
|
- phpenv config-rm xdebug.ini
|
2019-06-10 16:51:31 +00:00
|
|
|
- export PATH="$WP_CORE_DIR/wp-content/plugins/woocommerce-rest-api/vendor/bin:$PATH"
|
2019-06-10 16:22:33 +00:00
|
|
|
- bash unit-tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION
|
2019-06-10 16:09:42 +00:00
|
|
|
|
|
|
|
script:
|
2019-06-11 09:31:50 +00:00
|
|
|
- composer install
|
2019-06-10 16:09:42 +00:00
|
|
|
- bash unit-tests/bin/phpunit.sh
|
2019-06-10 16:22:33 +00:00
|
|
|
- bash unit-tests/bin/phpcs.sh
|