From e318463dd5fb02d62a63fe4188fb8db5314ac425 Mon Sep 17 00:00:00 2001 From: Peter Fabian Date: Mon, 24 Sep 2018 18:50:00 +0200 Subject: [PATCH] Updated the before_script instructions to correctly install node and print out version. --- plugins/woocommerce-admin/.travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/woocommerce-admin/.travis.yml b/plugins/woocommerce-admin/.travis.yml index 35c113cf573..1c6d2428a22 100755 --- a/plugins/woocommerce-admin/.travis.yml +++ b/plugins/woocommerce-admin/.travis.yml @@ -5,16 +5,18 @@ php: - 7.1 env: - - WP_VERSION=latest WP_MULTISITE=0 RUN_PHPCS=1 WP_CORE_DIR=/tmp/wordpress - - NODE_RELEASE=8.x + - WP_VERSION=latest WP_MULTISITE=0 RUN_PHPCS=1 WP_CORE_DIR=/tmp/wordpress NODE_RELEASE=8.x 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 - + - sudo rm -rf ~/.nvm + - curl -sL "https://deb.nodesource.com/setup_${NODE_RELEASE}" | sudo -E bash - - sudo apt-get install -y nodejs + - node --version + - npm --version install: