g6/.travis.yml
2020-08-17 18:50:55 +08:00

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