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
|
- 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:
|
||||||
|
Loading…
Reference in New Issue
Block a user