File tree Expand file tree Collapse file tree 6 files changed +38
-21
lines changed Expand file tree Collapse file tree 6 files changed +38
-21
lines changed Original file line number Diff line number Diff line change 10
10
_replicator
11
11
config.json
12
12
log.txt
13
+ /pouchdb
14
+ /tmp
Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
3
3
node_js :
4
- - " stable "
4
+ - " 6 "
5
5
6
6
sudo : false
7
7
8
8
git :
9
9
depth : 30
10
10
11
11
addons :
12
- firefox : " 41 .0.1 "
12
+ firefox : " 47 .0.2 "
13
13
14
14
script : npm run $COMMAND
15
15
16
16
before_script :
17
+ # Our test-browser.js script uses FIREFOX_BIN to find the Firefox binary
18
+ # See https://github.com/travis-ci/travis-ci/issues/4649
19
+ - echo "using firefox $(firefox --version)"
20
+ - export FIREFOX_BIN=$(which firefox)
21
+ # The next two lines are required for Firefox to run on Travis
17
22
- " export DISPLAY=:99.0"
18
23
- " sh -e /etc/init.d/xvfb start"
24
+ # Fail early if there's a jshint problem
25
+ - npm run jshint
19
26
20
27
env :
21
28
global :
24
31
- secure : " MiufQQKR/EBoS7kcau/I7oYenVilysEqwx37zdgLEKlEUe3SxVOe31uLZv/bhfLNZiRuLAfmIOZmhLGnhMf0LaBzR2yC5qhBxrVHcAiTuS3q6zxpzEf02jnu+hACvj1kJJEPjpOLpEVx7ghWL4McEO0qLbdtSbQlm2IkOX1ONg0="
25
32
26
33
matrix :
27
- - COMMAND=jshint
28
34
- CLIENT=node COMMAND=test-pouchdb
29
35
- CLIENT=node SERVER_ARGS=--in-memory COMMAND=test-pouchdb
30
36
- CLIENT=node SERVER_ARGS=--sqlite COMMAND=test-pouchdb
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # install pouchdb from git master rather than npm,
4
- # so we can run its own tests
5
- rm -fr node_modules/pouchdb
6
- git clone --depth 1 --single-branch --branch master \
7
- https://github.com/pouchdb/pouchdb.git node_modules/pouchdb
3
+ rm -fr tmp
4
+ mkdir -p tmp
5
+ cd tmp
8
6
9
- cd node_modules/pouchdb/
10
- npm install
11
-
12
- cd ../..
13
-
14
- ./bin/pouchdb-server -n -p 6984 $SERVER_ARGS &
7
+ ../bin/pouchdb-server -n -p 6984 $SERVER_ARGS &
15
8
POUCHDB_SERVER_PID=$!
16
9
17
- cd node_modules /pouchdb/
10
+ cd .. /pouchdb
18
11
19
- COUCH_HOST=http://localhost :6984 TIMEOUT=120000 npm run test-node
12
+ COUCH_HOST=http://127.0.0.1 :6984 TIMEOUT=120000 npm run test-node
20
13
21
14
EXIT_STATUS=$?
22
15
if [[ ! -z $POUCHDB_SERVER_PID ]]; then
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # install pouchdb from git rather than npm,
4
+ # so we can run its own tests
5
+ # also this branch may change as we update pouchdb
6
+ # versions because we can't necessarily test against
7
+ # the master tests since we use the version of pouchdb
8
+ # from npm
9
+ rm -rf pouchdb
10
+ git clone --single-branch \
11
+ --branch master \
12
+ --depth 1 \
13
+ https://github.com/pouchdb/pouchdb.git pouchdb
14
+ cd pouchdb
15
+ npm install
16
+ cd -
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ var Tail = require('tail').Tail;
4
4
var LogParser = require ( 'couchdb-log-parse' ) ;
5
5
var colors = require ( 'colors/safe' ) ;
6
6
var fs = require ( 'fs' ) ;
7
- var Promise = require ( 'bluebird ' ) ;
7
+ var Promise = require ( 'pouchdb-promise ' ) ;
8
8
9
9
var parser = new LogParser ( ) ;
10
10
parser . on ( 'message' , function ( msg ) {
Original file line number Diff line number Diff line change 16
16
},
17
17
"scripts" : {
18
18
"start" : " node ./bin/pouchdb-server" ,
19
- "test-pouchdb" : " ./bin/test-pouchdb.sh" ,
20
- "test-couchdb" : " ./bin/test-couchdb.sh" ,
19
+ "test-pouchdb" : " ./bin/test-setup.sh && ./bin/test- pouchdb.sh" ,
20
+ "test-couchdb" : " ./bin/test-setup.sh && ./bin/test- couchdb.sh" ,
21
21
"jshint" : " ./node_modules/.bin/jshint bin/pouchdb-server lib"
22
22
},
23
23
"engines" : {
24
24
"node" : " >= 0.8.0"
25
25
},
26
26
"dependencies" : {
27
- "bluebird" : " ^2.4.2" ,
28
27
"colors" : " ^1.0.3" ,
29
28
"corser" : " ~2.0.0" ,
30
29
"couchdb-harness" : " *" ,
31
30
"couchdb-log-parse" : " ^0.0.3" ,
32
31
"express" : " ^4.10.4" ,
33
- "express-pouchdb" : " ~1.0.4 " ,
32
+ "express-pouchdb" : " ^2.1.3 " ,
34
33
"http-pouchdb" : " ^1.1.0" ,
35
34
"killable" : " ^1.0.0" ,
36
35
"memdown" : " ^1.0.0" ,
37
36
"mkdirp" : " ^0.5.0" ,
38
37
"nomnom" : " ^1.8.1" ,
39
38
"pouchdb-adapter-node-websql" : " ^6.0.7" ,
40
39
"pouchdb-node" : " ^6.0.7" ,
40
+ "pouchdb-promise" : " 6.1.0" ,
41
41
"serve-favicon" : " ~2.0.1" ,
42
42
"tail" : " ^0.4.0" ,
43
43
"wordwrap" : " 0.0.2"
You can’t perform that action at this time.
0 commit comments