2018-09-24 16:25:06 +00:00
|
|
|
sudo: required
|
2018-09-21 13:06:16 +00:00
|
|
|
|
|
|
|
language: php
|
|
|
|
|
2019-06-12 17:46:08 +00:00
|
|
|
dist: trusty
|
|
|
|
|
2018-11-02 11:34:39 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- name: "PHP 7.2 unit tests, PHP Coding standards check and JS tests"
|
|
|
|
php: 7.2
|
2019-05-14 03:58:37 +00:00
|
|
|
env: WP_VERSION=latest WP_MULTISITE=0 WP_CORE_DIR=/tmp/wordpress RUN_PHPCS=1 RUN_JS=1
|
2018-11-02 11:34:39 +00:00
|
|
|
- name: "PHP 7.1 unit tests"
|
|
|
|
php: 7.1
|
2019-05-14 03:58:37 +00:00
|
|
|
env: WP_VERSION=latest WP_MULTISITE=0 WP_CORE_DIR=/tmp/wordpress
|
2018-11-02 11:34:39 +00:00
|
|
|
- name: "PHP 7.0 unit tests"
|
|
|
|
php: 7.0
|
2019-05-14 03:58:37 +00:00
|
|
|
env: WP_VERSION=latest WP_MULTISITE=0 WP_CORE_DIR=/tmp/wordpress
|
2018-11-02 11:34:39 +00:00
|
|
|
- name: "PHP 5.6 unit tests"
|
|
|
|
php: 5.6
|
2019-05-14 03:58:37 +00:00
|
|
|
env: WP_VERSION=latest WP_MULTISITE=0 WP_CORE_DIR=/tmp/wordpress
|
2018-11-02 11:34:39 +00:00
|
|
|
|
|
|
|
|
2019-05-14 03:58:37 +00:00
|
|
|
before_install:
|
|
|
|
- nvm install 'lts/*'
|
2018-09-21 13:16:53 +00:00
|
|
|
|
2018-09-21 13:06:16 +00:00
|
|
|
before_script:
|
|
|
|
- phpenv config-rm xdebug.ini
|
2019-03-13 17:14:02 +00:00
|
|
|
- export PATH="$WP_CORE_DIR/wp-content/plugins/woocommerce-admin/vendor/bin:$PATH"
|
2018-09-21 13:06:16 +00:00
|
|
|
- bash bin/install-wp-tests.sh wc_admin_test root '' localhost $WP_VERSION
|
|
|
|
- bash bin/travis.sh before
|
2018-09-24 16:50:00 +00:00
|
|
|
- node --version
|
|
|
|
- npm --version
|
2018-11-02 11:34:39 +00:00
|
|
|
- timedatectl
|
2018-09-24 16:25:06 +00:00
|
|
|
|
2018-04-17 21:03:14 +00:00
|
|
|
script:
|
2018-11-02 11:34:39 +00:00
|
|
|
- bash bin/js_lint_test.sh
|
2018-09-21 13:06:16 +00:00
|
|
|
- bash bin/phpunit.sh
|
|
|
|
- bash bin/phpcs.sh
|
2019-09-23 19:14:14 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|