You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
613 B
25 lines
613 B
language: node_js
|
|
|
|
sudo: false
|
|
|
|
node_js:
|
|
- "6"
|
|
- "5"
|
|
- "4"
|
|
- "0.12"
|
|
- "0.10"
|
|
|
|
env:
|
|
- MONGODB_VERSION="2.6.11"
|
|
- MONGODB_VERSION="3.0.7"
|
|
- MONGODB_VERSION="3.2.0"
|
|
|
|
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
|
|
|
|
script: "npm test"
|
|
|