From 43ab79b994b86ad478a357fc30b51b7674188c44 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 17 Aug 2020 16:04:49 +0800 Subject: [PATCH] use yarn instead of npm in travis.yml --- .travis.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9ccf302bca..63602c6a4a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,16 +7,14 @@ env: - NODE_ENV=test install: - - export DISPLAY=':99.0' - - Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & - - npm install + - yarn script: - | if [ "$TEST_TYPE" = test ]; then - npm run ci && cat ./coverage/lcov.info | rm -rf ./coverage + yarn ci && cat ./coverage/lcov.info | rm -rf ./coverage else - npm run $TEST_TYPE + yarn $TEST_TYPE fi env: matrix: