woocommerce/.travis.yml

23 lines
596 B
YAML
Raw Normal View History

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:
- phpenv config-rm xdebug.ini
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:
- bash unit-tests/bin/phpunit.sh
2019-06-10 16:22:33 +00:00
- bash unit-tests/bin/phpcs.sh