forked from pouchdb/express-pouchdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (42 loc) · 1.77 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
language: node_js
node_js:
- "0.10"
git:
depth: 30
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "sleep 5"
# Workaround for Selenium #3280 issue
- "sudo sed -i 's/^127\\.0\\.0\\.1.*$/127.0.0.1 localhost/' /etc/hosts"
# pouchdb-server setup
- "rm -fr node_modules/pouchdb-server/node_modules/express-pouchdb"
- "ln -s ../../.. node_modules/pouchdb-server/node_modules/express-pouchdb"
- "cd node_modules/pouchdb-server && npm install && cd -"
# pouchdb setup
- "ln -s ../../.. node_modules/pouchdb/node_modules/express-pouchdb"
- "ln -s ../../pouchdb-server node_modules/pouchdb/node_modules/pouchdb-server"
- "cd node_modules/pouchdb && npm install && cd -"
script: "npm run $COMMAND"
env:
global:
- secure: "WYQbfTXYwPfqz7t3ycqpXIDQdZ7C9kQJAP+08OF0cuR8eqhm7HxCiu9LjSNqoLAdlDmc55ygeS16Kn3Oht3zZ/i2Y7Gm75HcQfzUIb1sDv1xVm3aQmqZDJfAQ/r7fN8upBCLii/W8IUkJr1k717MpbdsTerIjyfPOb27hw0kJTM="
- secure: "Ut9pRqzbVJHxg8vt1Cx0bTv4HAroBkvOLjtHF+11f/OzfNnAORIEPnJFHqGbOTozCPOizmzgwvCGqq9gYL8SakrfiI0wBfaL+lk0ub/FPuJ1+hwrLDU0Ju4O5reL0OSu0JB+OTmXfILuRQQkD9/7uwUEbLDFId4phSq3cz1UsK0="
- secure: "MiufQQKR/EBoS7kcau/I7oYenVilysEqwx37zdgLEKlEUe3SxVOe31uLZv/bhfLNZiRuLAfmIOZmhLGnhMf0LaBzR2yC5qhBxrVHcAiTuS3q6zxpzEf02jnu+hACvj1kJJEPjpOLpEVx7ghWL4McEO0qLbdtSbQlm2IkOX1ONg0="
matrix:
- COMMAND=jshint
- COMMAND=test-express-pouchdb
- CLIENT=node COMMAND=test-pouchdb
- CLIENT=node COMMAND=test-pouchdb-minimum
# Test in firefox/phantomjs running on travis
- CLIENT=selenium:firefox COMMAND=test-pouchdb
- CLIENT=selenium:phantomjs ES5_SHIM=true COMMAND=test-pouchdb
# Test against the couchdb harness
- COMMAND=test-couchdb
matrix:
allow_failures:
- env: COMMAND=test-couchdb
branches:
only:
- master
- /^pull*$/