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
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: