Skip to content

Commit

Permalink
Use sharded cluster for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed May 24, 2016
1 parent b284333 commit 801368c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -6,7 +6,7 @@ php:

env:
global:
- DOCTRINE_MONGODB_SERVER=mongodb://localhost:27217
- DOCTRINE_MONGODB_SERVER=mongodb://localhost:27017
matrix:
- MONGO_VERSION=1.5.8
- MONGO_VERSION=stable
Expand All @@ -21,6 +21,7 @@ services: mongodb

before_script:
- if [ "x${MONGO_VERSION}" != "x" ]; then yes '' | pecl -q install -f mongo-${MONGO_VERSION} && echo "extension=mongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi
- sudo service mongodb stop
- sudo pip install mongo-orchestration
- sudo mongo-orchestration start
- curl -XPUT http://localhost:8889/v1/sharded_clusters/myCluster --data @tests/sharded.json | python -m json.tool
Expand Down

0 comments on commit 801368c

Please sign in to comment.