-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
57 lines (48 loc) · 1.02 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
50
51
52
53
54
55
56
57
language: node_js
dist: trusty
cache:
directories:
- node_modules
env:
global:
- DBUS_SESSION_BUS_ADDRESS=/dev/null
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
matrix:
fast_finish: true
include:
- node_js: "6"
os: linux
env: SCRIPT=lint
- node_js: "6"
os: linux
env: SCRIPT=test:unit
- node_js: "6"
os: linux
env: NODE_SCRIPT=tests/run_e2e.js
- node_js: "8"
os: linux
env: NODE_SCRIPT=tests/run_e2e.js
- node_js: "8"
os: linux
env: SCRIPT=protractor:travis
before_install:
- npm config set spin false
- npm config set progress false
- npm install npm@5 -g
- npm cache clean --force
install:
- npm install
after_install:
- ./node_modules/protractor/bin/webdriver-manager update
before_script:
- export DISPLAY=:99
- sh -e /etc/init.d/xvfb start
- sleep 3
script:
- if [[ "$SCRIPT" ]]; then npm run-script $SCRIPT; fi
- if [[ "$NODE_SCRIPT" ]]; then node $NODE_SCRIPT; fi