-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy path.travis.yml
More file actions
37 lines (28 loc) · 743 Bytes
/
.travis.yml
File metadata and controls
37 lines (28 loc) · 743 Bytes
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
language: node_js
node_js:
- "6"
services:
- docker
sudo:
false
addons:
firefox: "41.0.1"
before_install:
# Install CouchDB Master
- docker run -d -p 5984:5984 klaemo/couchdb:2.0-dev --with-haproxy --with-admin-party-please -n 1
- npm install add-cors-to-couchdb
- "while [ '200' != $(curl -s -o /dev/null -w \"%{http_code}\" 127.0.0.1:5984) ]; do echo waiting for couch to load... ; sleep 1; done"
- ./node_modules/.bin/add-cors-to-couchdb
script: npm run $COMMAND
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
env:
matrix:
- COMMAND=test
- CLIENT=selenium:firefox COMMAND=test
- CLIENT=selenium:phantomjs COMMAND=test
- COMMAND=report-coverage
branches:
only:
- master