2017-06-21 00:04:24 +00:00
|
|
|
language: node_js
|
|
|
|
dist: trusty
|
2017-06-21 03:48:35 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
# This is required to run new chrome on old trusty
|
|
|
|
- libnss3
|
2017-06-21 00:04:24 +00:00
|
|
|
cache:
|
|
|
|
yarn: true
|
|
|
|
directories:
|
|
|
|
- node_modules
|
2017-11-03 07:02:41 +00:00
|
|
|
# allow headful tests
|
|
|
|
before_install:
|
|
|
|
- "export DISPLAY=:99.0"
|
|
|
|
- "sh -e /etc/init.d/xvfb start"
|
2017-06-21 00:04:24 +00:00
|
|
|
install:
|
|
|
|
- yarn install
|
|
|
|
# puppeteer's install script downloads Chrome
|
|
|
|
script:
|
2017-08-24 19:20:05 +00:00
|
|
|
- 'if [ "$NODE7" = "true" ]; then yarn run lint; fi'
|
|
|
|
- 'if [ "$NODE7" = "true" ]; then yarn run coverage; fi'
|
2017-10-02 22:14:57 +00:00
|
|
|
- 'if [ "$NODE7" = "true" ]; then yarn run test-doclint; fi'
|
2017-08-26 02:28:49 +00:00
|
|
|
- 'if [ "$NODE6" = "true" ]; then yarn run unit-node6; fi'
|
2017-08-24 19:20:05 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
2017-10-17 22:02:09 +00:00
|
|
|
- node_js: "7.6.0"
|
2017-08-24 19:20:05 +00:00
|
|
|
env: NODE7=true
|
|
|
|
- node_js: "6.4.0"
|
|
|
|
env: NODE6=true
|