woocommerce/plugins/woocommerce-admin/.travis.yml

33 lines
654 B
YAML
Raw Normal View History

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:
- 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
- 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
- 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
- npm test
2018-09-21 13:06:16 +00:00
- bash bin/phpunit.sh
- bash bin/phpcs.sh