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:
|
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
|