2018-09-24 16:25:06 +00:00
|
|
|
sudo: required
|
2018-09-21 13:06:16 +00:00
|
|
|
|
|
|
|
language: php
|
|
|
|
php:
|
2018-09-21 14:37:02 +00:00
|
|
|
- 7.1
|
2018-09-21 13:06:16 +00:00
|
|
|
|
|
|
|
env:
|
2018-09-24 16:50:00 +00:00
|
|
|
- WP_VERSION=latest WP_MULTISITE=0 RUN_PHPCS=1 WP_CORE_DIR=/tmp/wordpress NODE_RELEASE=8.x
|
2018-09-21 13:16:53 +00:00
|
|
|
|
2018-09-21 13:06:16 +00:00
|
|
|
before_script:
|
|
|
|
- phpenv config-rm xdebug.ini
|
|
|
|
- export PATH="$HOME/.composer/vendor/bin:$PATH"
|
|
|
|
- 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
|
|
|
- sudo rm -rf ~/.nvm
|
|
|
|
- curl -sL "https://deb.nodesource.com/setup_${NODE_RELEASE}" | sudo -E bash -
|
2018-09-24 16:25:06 +00:00
|
|
|
- sudo apt-get install -y nodejs
|
2018-09-24 16:50:00 +00:00
|
|
|
- node --version
|
|
|
|
- npm --version
|
2018-09-21 13:06:16 +00:00
|
|
|
|
|
|
|
|
2018-09-24 16:25:06 +00:00
|
|
|
install:
|
|
|
|
- npm install
|
|
|
|
|
2018-07-12 23:01:11 +00:00
|
|
|
node_js:
|
|
|
|
- "8"
|
2018-09-24 16:25:06 +00:00
|
|
|
|
2018-04-17 21:03:14 +00:00
|
|
|
script:
|
2018-07-12 23:01:11 +00:00
|
|
|
- npm run lint
|
2018-07-19 16:30:25 +00:00
|
|
|
- npm test
|
2018-09-21 13:06:16 +00:00
|
|
|
- bash bin/phpunit.sh
|
|
|
|
- bash bin/phpcs.sh
|