antv-l7/.travis.yml

40 lines
622 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-04-21 14:18:52 +08:00
- yarn bundle
2020-02-05 17:24:19 +08:00
notifications:
2020-04-21 14:48:28 +08:00
webhooks: ${dingdingWebhooks}