antv-l7/.travis.yml

39 lines
701 B
YAML
Raw Normal View History

2019-11-01 17:15:20 +08:00
language: node_js
os: linux
sudo: required
dist: trusty
addons:
apt:
packages:
- mesa-utils
- xvfb
- libgl1-mesa-dri
- libglapi-mesa
- libosmesa6
2019-11-01 17:15:20 +08:00
node_js:
2019-11-22 19:00:05 +08:00
- '12'
2019-11-21 23:27:01 +08:00
env:
- NODE_ENV=test
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
2019-11-21 10:07:00 +08:00
install:
- export DISPLAY=':99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- yarn install
before_script:
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start
2019-11-01 17:15:20 +08:00
script:
- yarn lint
- yarn test
- yarn build
2020-02-05 17:24:19 +08:00
notifications:
webhooks: https://oapi.dingtalk.com/robot/send?access_token=2dacc76d8b1ea8bcdc792b50f103d13efdba9ef53ec0caeb70631bc3add56118