From 872318442fd7280ebd695a38f86b522200e9a5b4 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 25 Dec 2014 01:00:57 -0500 Subject: [PATCH] install latest mongo in travis, travis only has 2.4.10 --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1231c9083c..03836a8a33 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,14 @@ services: - redis-server - - mongodb before_install: + - "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10" + - "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list" + - "sudo apt-get update" + - "sudo apt-get install mongodb-org-server" - npm i --production - node app --setup="{\"url\":\"http://127.0.0.1:4567/\",\"secret\":\"abcdef\",\"database\":\"mongo\",\"mongo:host\":\"127.0.0.1\",\"mongo:port\":27017,\"mongo:username\":\"\",\"mongo:password\":\"\",\"mongo:database\":0,\"redis:host\":\"127.0.0.1\",\"redis:port\":6379,\"redis:password\":\"\",\"redis:database\":0,\"admin:username\":\"admin\",\"admin:email\":\"test@example.org\",\"admin:password\":\"abcdef\",\"admin:password:confirm\":\"abcdef\"}" --ci="{\"host\":\"127.0.0.1\",\"port\":27017,\"database\":0}" +before_script: + - "until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done" language: node_js node_js: - "0.11"