diff --git a/plugins/woocommerce-blocks/.travis.yml b/plugins/woocommerce-blocks/.travis.yml index ca7ec8b2c61..f2c51dc6f2f 100644 --- a/plugins/woocommerce-blocks/.travis.yml +++ b/plugins/woocommerce-blocks/.travis.yml @@ -5,41 +5,40 @@ dist: trusty sudo: false cache: - directories: - - vendor - - node_modules - - $HOME/.npm - - $HOME/.composer/cache + directories: + - vendor + - node_modules + - $HOME/.npm + - $HOME/.composer/cache branches: - only: - - master - - /release\/.*/ + only: + - master + - /release\/.*/ before_install: - - timedatectl - - nvm install - - npm rebuild + - timedatectl + - nvm install --latest-npm before_script: - - export PATH="$HOME/.composer/vendor/bin:$PATH" - - | - if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then - phpenv config-rm xdebug.ini - else - echo "xdebug.ini does not exist" - fi - - | - if [[ ! -z "$WP_VERSION" ]] ; then - composer install --no-dev - # also installs woocommerce plugin - bash tests/bin/install-wp-tests.sh wgpb_admin root '' localhost $WP_VERSION - composer global require "phpunit/phpunit=4.8.*|5.7.*" - fi - - | - if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then - composer install - fi + - export PATH="$HOME/.composer/vendor/bin:$PATH" + - | + if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then + phpenv config-rm xdebug.ini + else + echo "xdebug.ini does not exist" + fi + - | + if [[ ! -z "$WP_VERSION" ]] ; then + composer install --no-dev + # also installs woocommerce plugin + bash tests/bin/install-wp-tests.sh wgpb_admin root '' localhost $WP_VERSION + composer global require "phpunit/phpunit=4.8.*|5.7.*" + fi + - | + if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then + composer install + fi jobs: fast_finish: true include: @@ -47,26 +46,26 @@ jobs: name: PHP 7.1/unit-tests/Latest WP php: 7.1 env: - - WP_VERSION=latest + - WP_VERSION=latest script: - - phpunit + - phpunit - name: PHP 5.6/unit-tests/Latest WP php: 5.6 env: - - WP_VERSION=latest + - WP_VERSION=latest script: - - phpunit + - phpunit - name: PHP Linting Check php: 7.1 env: - - WP_TRAVISCI=phpcs + - WP_TRAVISCI=phpcs script: - - npm run lint:php + - npm run lint:php - name: Javascript Tests script: - - npm install - - npm run test + - npm install + - npm run test - name: Javascript/CSS Lint and Bundle Size Check script: - - npm install - - npm run build:ci + - npm install + - npm run build:ci diff --git a/plugins/woocommerce-blocks/bin/eslint-plugin-woocommerce/package.json b/plugins/woocommerce-blocks/bin/eslint-plugin-woocommerce/package.json index b42cebf48a5..88fe8e59aa2 100644 --- a/plugins/woocommerce-blocks/bin/eslint-plugin-woocommerce/package.json +++ b/plugins/woocommerce-blocks/bin/eslint-plugin-woocommerce/package.json @@ -6,6 +6,6 @@ "eslint": "6.8.0" }, "engines": { - "node": "10.18.0" + "node": "12.13.0" } } diff --git a/plugins/woocommerce-blocks/package.json b/plugins/woocommerce-blocks/package.json index c5bf1bb1049..c49badc8abc 100644 --- a/plugins/woocommerce-blocks/package.json +++ b/plugins/woocommerce-blocks/package.json @@ -104,7 +104,7 @@ "yargs": "15.0.2" }, "engines": { - "node": "10.18.0", + "node": "12.13.0", "npm": "6.13.4" }, "dependencies": {