forked from berstend/puppeteer-extra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (41 loc) · 1.75 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: node_js
dist: trusty
addons:
apt:
packages:
# This is required to run new chrome on old trusty
- libnss3
language: node_js
# allow headful tests
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
# test against multiple node versions
node_js:
- '11'
- '10'
# - '9'
# test against multiple puppeteer versions
env:
- PUPPETEER_VERSION=next
# - PUPPETEER_VERSION=1.11.0
- PUPPETEER_VERSION=1.10.0
- PUPPETEER_VERSION=1.9.0
- PUPPETEER_VERSION=1.7.0
- PUPPETEER_VERSION=1.6.2
- PUPPETEER_VERSION=1.4.0
script:
# Make sure to use latest @next package
# https://github.com/yarnpkg/yarn/issues/4731
- 'if [ "$PUPPETEER_VERSION" = "next" ]; then rm -rf yarn.lock && rm -rf ./node_modules/puppeteer && lerna add puppeteer@next && yarn; fi'
# Install older version when required
- 'if [ "$PUPPETEER_VERSION" = "1.11.0" ]; then rm -rf yarn.lock && rm -rf ./node_modules/puppeteer && lerna add [email protected] && yarn; fi'
- 'if [ "$PUPPETEER_VERSION" = "1.11.0" ]; then rm -rf yarn.lock && rm -rf ./node_modules/puppeteer && lerna add [email protected] && yarn; fi'
- 'if [ "$PUPPETEER_VERSION" = "1.11.0" ]; then rm -rf yarn.lock && rm -rf ./node_modules/puppeteer && lerna add [email protected] && yarn; fi'
- 'if [ "$PUPPETEER_VERSION" = "1.11.0" ]; then rm -rf yarn.lock && rm -rf ./node_modules/puppeteer && lerna add [email protected] && yarn; fi'
- 'if [ "$PUPPETEER_VERSION" = "1.11.0" ]; then rm -rf yarn.lock && rm -rf ./node_modules/puppeteer && lerna add [email protected] && yarn; fi'
- 'if [ "$PUPPETEER_VERSION" = "1.11.0" ]; then rm -rf yarn.lock && rm -rf ./node_modules/puppeteer && lerna add [email protected] && yarn; fi'
# For debugging
- yarn list puppeteer
# Run tests
- yarn test-ci