forked from 2do2go/mongodbext
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
27 lines (22 loc) · 760 Bytes
/
.travis.yml
File metadata and controls
27 lines (22 loc) · 760 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
language: node_js
node_js:
- "stable"
- "4"
- "6"
- "8"
sudo: false
env:
- MONGODB_VERSION=2.4.14 MONGODB_DRIVER_VERSION=2.x.x
- MONGODB_VERSION=3.2.16 MONGODB_DRIVER_VERSION=2.x.x
- MONGODB_VERSION=3.2.16 MONGODB_DRIVER_VERSION=3.x.x
before_script:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB_VERSION}.tgz -O /tmp/mongodb.tgz
- tar -xvf /tmp/mongodb.tgz
- mkdir /tmp/data
- ${PWD}/mongodb-linux-x86_64-${MONGODB_VERSION}/bin/mongod --dbpath /tmp/data &> /dev/null &
- ${PWD}/mongodb-linux-x86_64-${MONGODB_VERSION}/bin/mongod --version
- until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done
- npm install mongodb@${MONGODB_DRIVER_VERSION}
script:
- npm run lint
- npm run test