puppeteer/.travis.yml

42 lines
1.7 KiB
YAML

language: node_js
dist: trusty
addons:
apt:
packages:
# This is required to run new chrome on old trusty
- libnss3
notifications:
email: false
cache:
directories:
- node_modules
# allow headful tests
before_install:
- "sysctl kernel.unprivileged_userns_clone=1"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script:
- 'if [ "$NODE8" = "true" ]; then npm run lint; fi'
- 'if [ "$NODE8" = "true" ]; then npm run coverage; fi'
- 'if [ "$NODE8" = "true" ]; then npm run test-doclint; fi'
- 'if [ "$NODE8" = "true" ]; then npm run bundle; fi'
- 'if [ "$NODE8" = "true" ]; then npm run unit-bundle; fi'
- 'if [ "$NODE6" = "true" ]; then npm run unit-node6; fi'
jobs:
include:
- node_js: "8.11.3"
env: NODE8=true
- node_js: "6.12.3"
env: NODE6=true
before_deploy: "npm run apply-next-version"
deploy:
provider: npm
email: aslushnikov@gmail.com
api_key:
secure: Ynyvf98Jp2/BHXdDNiDIHgDBThDtrpez+qNIwq71dndgNcQScKqCU6yw7TpPwHlUsPsc9zyFiexYlQ4oT4kWzwWVRpodgY31F42+Ktpdb9pYyhGC5+ISQWO8U0/WIQYfOwEbZri/q/dyo/ko9S2zL5P63xoIwUTyNIANOjXQUKhc6PVdJLrRV+qHBYwtIS4OZ/2WrYnbQvg3dAf2ke75P4OWJdiyU16JjA41MhoIPnxLBokiImzXIL4LiZm9CDH4xgIegUbzjlVkQYUqcsptmPueZY7hlSbFVKKEYajTWcLqb5EidTot8KJns+355W3lD+USnCpFAS4tscek2hc826dux2yUVXFvnONAC11hL5cItNmwojXV53cK+4j//crH8EQt4RRQn+Z+2WrLMxEetxwbNxdjDWiH5VY1iD4d/8mm3rbVhtxRGxsaH8j3SqSa3VMEUrHsrzMPm0mCpqscYqWzf+M0rRX8eJv4bqRkBE86eVTPqR2iUbtDe+gckE1rPNt6r6qMtLZCIxuA1IBsTKJxuAl3hoYzcLt0SxonHcpts6JZsmumlu29ve4d87M9R4VNK74B4MNSs3ZnfvZaVikO2b/3jGExGxV2bppQnM+rZrA+1Zonpf53EtOXDhaNgTX9cyVt4y/OJQlqF5N9roIYvTp3jgtNTC6fIxukaOE=
on:
branch: master
condition: "$NODE8 = true"
skip_cleanup: true
tag: next