Updated the before_script instructions to correctly install node and print out version.

This commit is contained in:
Peter Fabian 2018-09-24 18:50:00 +02:00
parent ef72b7af2c
commit e318463dd5
1 changed files with 5 additions and 3 deletions

View File

@ -5,16 +5,18 @@ php:
- 7.1 - 7.1
env: env:
- WP_VERSION=latest WP_MULTISITE=0 RUN_PHPCS=1 WP_CORE_DIR=/tmp/wordpress - WP_VERSION=latest WP_MULTISITE=0 RUN_PHPCS=1 WP_CORE_DIR=/tmp/wordpress NODE_RELEASE=8.x
- NODE_RELEASE=8.x
before_script: before_script:
- phpenv config-rm xdebug.ini - phpenv config-rm xdebug.ini
- export PATH="$HOME/.composer/vendor/bin:$PATH" - export PATH="$HOME/.composer/vendor/bin:$PATH"
- bash bin/install-wp-tests.sh wc_admin_test root '' localhost $WP_VERSION - bash bin/install-wp-tests.sh wc_admin_test root '' localhost $WP_VERSION
- bash bin/travis.sh before - 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 - sudo apt-get install -y nodejs
- node --version
- npm --version
install: install: