mirror of
https://gitee.com/antv/g6.git
synced 2024-12-05 05:09:07 +08:00
31 lines
429 B
YAML
31 lines
429 B
YAML
language: node_js
|
|
|
|
node_js:
|
|
- '12'
|
|
|
|
env:
|
|
- NODE_ENV=test
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- xvfb
|
|
- libgconf-2-4
|
|
|
|
install:
|
|
- export DISPLAY=':99.0'
|
|
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
|
- yarn
|
|
|
|
script:
|
|
- |
|
|
if [ "$TEST_TYPE" = test ]; then
|
|
yarn ci && bash <(curl -s https://codecov.io/bash)
|
|
else
|
|
yarn $TEST_TYPE
|
|
fi
|
|
env:
|
|
matrix:
|
|
- TEST_TYPE=lint
|
|
- TEST_TYPE=test
|