From 684d84bad5c56219dc847d28dac457f62173a487 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Fri, 15 Mar 2019 22:25:23 +0800 Subject: [PATCH] Fix using Node.js --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c00e3617..8b5caa5e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,12 @@ language: php - -node_js: 10 php: 7.3 +before_install: +- nvm install 10 +- node -v +- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version version-number +- export PATH="$HOME/.yarn/bin:$PATH" + install: - composer install --no-dev - rm -rf vendor/bin