42 lines
1.0 KiB
YAML
Executable File
42 lines
1.0 KiB
YAML
Executable File
sudo: required
|
|
|
|
language: php
|
|
|
|
dist: trusty
|
|
|
|
matrix:
|
|
include:
|
|
- name: "PHP 7.2 unit tests, PHP Coding standards check and JS tests"
|
|
php: 7.2
|
|
env: WP_VERSION=latest WP_MULTISITE=0 WP_CORE_DIR=/tmp/wordpress RUN_PHPCS=1 RUN_JS=1
|
|
- name: "PHP 7.1 unit tests"
|
|
php: 7.1
|
|
env: WP_VERSION=latest WP_MULTISITE=0 WP_CORE_DIR=/tmp/wordpress
|
|
- name: "PHP 7.0 unit tests"
|
|
php: 7.0
|
|
env: WP_VERSION=latest WP_MULTISITE=0 WP_CORE_DIR=/tmp/wordpress
|
|
- name: "PHP 5.6 unit tests"
|
|
php: 5.6
|
|
env: WP_VERSION=latest WP_MULTISITE=0 WP_CORE_DIR=/tmp/wordpress
|
|
|
|
|
|
before_install:
|
|
- nvm install 'lts/*'
|
|
|
|
before_script:
|
|
- phpenv config-rm xdebug.ini
|
|
- export PATH="$WP_CORE_DIR/wp-content/plugins/woocommerce-admin/vendor/bin:$PATH"
|
|
- bash bin/install-wp-tests.sh wc_admin_test root '' localhost $WP_VERSION
|
|
- bash bin/travis.sh before
|
|
- node --version
|
|
- npm --version
|
|
- timedatectl
|
|
|
|
script:
|
|
- bash bin/js_lint_test.sh
|
|
- bash bin/phpunit.sh
|
|
- bash bin/phpcs.sh
|
|
|
|
branches:
|
|
only:
|
|
- master |