UNPKG

1.61 kBYAMLView Raw
1language: node_js
2dist: trusty
3addons:
4 apt:
5 packages:
6 # This is required to run new chrome on old trusty
7 - libnss3
8cache:
9 yarn: true
10 directories:
11 - node_modules
12# allow headful tests
13before_install:
14 - "export DISPLAY=:99.0"
15 - "sh -e /etc/init.d/xvfb start"
16install:
17 - yarn install
18 # puppeteer's install script downloads Chrome
19script:
20 - 'if [ "$NODE7" = "true" ]; then yarn run lint; fi'
21 - 'if [ "$NODE7" = "true" ]; then yarn run coverage; fi'
22 - 'if [ "$NODE7" = "true" ]; then yarn run test-doclint; fi'
23 - 'if [ "$NODE6" = "true" ]; then yarn run unit-node6; fi'
24jobs:
25 include:
26 - node_js: "7.6.0"
27 env: NODE7=true
28 - node_js: "6.4.0"
29 env: NODE6=true
30before_deploy: "yarn run apply-next-version"
31deploy:
32 provider: npm
33 email: aslushnikov@gmail.com
34 api_key:
35 secure: S/cwhamxKh0dsI46jewA6AkFXhDQWqfGkEe19WP3uoBg69jBqxs3DMcqGmd7og8RgqFUhhnBon8cDyJD25XHhDSSVANY9sFhwAPsty+Pjc9NHlG9My59tzpKSuhxOHxUaUd4Ug1gjYKTRNh4yYQKuGFm1mS3X34AbHg+eAFz6gVk3oVoc8Uu/rYH/dTP/ZGa29U7tn8DrEiyxoxv1pIEoX66AmAA649+nULwZw1MlhTaZZgYYIHlMC91dY6N6ql3ESj0zZSmQmrdZbWcGkTZDfBmdHMfFhnX9n0D7AgNvKNL+LDBcu7yiGO3hM2BrVOlGv24FFaHF5cLU4wuRuBvRG8cx3j1rG5w8c8jkEN1iL6qcmo76++YfILi3DIzD2n4RAsKeGILTcQOHhY4wqViuy0bb5zc5i/pqbtUERb3ngCZbNYTY8MQ5ertckmEw8daS/irREZfmThY90EPitsYw39f1+tdm9YUpWz/q2MpjqNByk6ycr17i2zFdqy4j/5CwrlmtewCw7Np8ubNITuqL7rst5GojlJvKSA3onuGyJLtSshUFn6lwwAHpkptZ5JWDwkxHiW+ofQ50Td6+NouJrSobOd1JzJ5om4eH2V1hkD5RP5saeDgojbRTMX+j8lQaQAnYQLYj0C2I1i6yl+VP0HUt7L//3zTRUetNTzGdA4=
36 on:
37 branch: master
38 condition: "$NODE7 = true"
39 skip_cleanup: true
40 tag: next