-
Notifications
You must be signed in to change notification settings - Fork 66
/
.travis.yml
40 lines (36 loc) · 1.12 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
sudo: required
dist: trusty
cache:
directories:
- node_modules
language: node_js
env:
global:
- CXX=g++-4.8
- DISPLAY=:99.0
- CHROME_BIN=/usr/bin/google-chrome
# setting up Chrome for e2e tests
apt:
sources:
- google-chrome
packages:
- dpkg # see https://github.com/travis-ci/travis-ci/issues/9361
- google-chrome-stable
# Building for a specific set of node versions
node_js:
- '8'
before_install:
- sudo apt-get --allow-unauthenticated install -y dpkg
- sudo apt-get --only-upgrade --allow-unauthenticated install google-chrome-stable
- google-chrome --version
- LATEST_CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE"`
- curl "https://chromedriver.storage.googleapis.com/${LATEST_CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" -O
- unzip chromedriver_linux64.zip -d ~/bin
# the following step should start the virtual X frame buffer: Xvfb process
before_script:
- "sh -e /etc/init.d/xvfb start"
- sleep 3 #wait a while before xvfb to start
after_script:
- "sh -e /etc/init.d/xvfb stop"
script:
- echo "skipping tests"