use yarn instead of npm in travis.yml

This commit is contained in:
afc163 2020-08-17 16:04:49 +08:00 committed by Yanyan Wang
parent 51edab58a7
commit 43ab79b994

View File

@ -7,16 +7,14 @@ env:
- NODE_ENV=test - NODE_ENV=test
install: install:
- export DISPLAY=':99.0' - yarn
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- npm install
script: script:
- | - |
if [ "$TEST_TYPE" = test ]; then 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 else
npm run $TEST_TYPE yarn $TEST_TYPE
fi fi
env: env:
matrix: matrix: