-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
39 lines (34 loc) · 1.15 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
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: required
dist: bionic
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/
language: node_js
node_js:
- "8"
- "9"
- "10"
- "11"
- "12"
- "13"
- "14"
# http://docs.travis-ci.com/user/gui-and-headless-browsers
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
# start xvbfb for e2e tests with screen resolution 1280x1024x16
- "export DISPLAY=:99.0"
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
# give xvfb some time to start
- sleep 3
- sudo apt-get update
- sudo apt-get install -y dpkg # to upgrade to dpkg >= 1.17.5ubuntu5.8, which fixes https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1730627
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
- google-chrome --version
install:
- npm install
before_script:
- npm run lint
# http://docs.travis-ci.com/user/pull-requests/
script:
- npm test