mirror of
https://gitee.com/antv/g6.git
synced 2024-11-30 10:48:24 +08:00
use yarn instead of npm in travis.yml
This commit is contained in:
parent
51edab58a7
commit
43ab79b994
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user