2019-11-01 17:15:20 +08:00
|
|
|
language: node_js
|
2019-11-29 15:38:17 +08:00
|
|
|
os: linux
|
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- mesa-utils
|
|
|
|
- xvfb
|
|
|
|
- libgl1-mesa-dri
|
|
|
|
- libglapi-mesa
|
|
|
|
- libosmesa6
|
2019-11-22 17:05:22 +08:00
|
|
|
|
2019-11-01 17:15:20 +08:00
|
|
|
node_js:
|
2019-11-22 19:00:05 +08:00
|
|
|
- '12'
|
2019-11-22 17:05:22 +08:00
|
|
|
|
2019-11-21 23:27:01 +08:00
|
|
|
env:
|
2019-11-22 17:05:22 +08:00
|
|
|
- NODE_ENV=test
|
|
|
|
|
2019-11-22 18:46:55 +08:00
|
|
|
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:
|
2020-01-13 20:57:55 +08:00
|
|
|
- export DISPLAY=':99.0'
|
|
|
|
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
2019-11-22 17:05:22 +08:00
|
|
|
- yarn install
|
|
|
|
|
2019-11-29 15:38:17 +08:00
|
|
|
before_script:
|
|
|
|
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start
|
|
|
|
|
2019-11-01 17:15:20 +08:00
|
|
|
script:
|
2019-11-22 17:05:22 +08:00
|
|
|
- yarn lint
|
|
|
|
- yarn test
|
2019-11-26 17:53:31 +08:00
|
|
|
- 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}
|