Commit 9d218a73 authored by Jeremy Mikola's avatar Jeremy Mikola

PHPLIB-98: Ensure mongod service is started for all versions

We need to account for differing service names between 2.4 and 2.6+.
parent 5076ff16
...@@ -27,6 +27,8 @@ install: ...@@ -27,6 +27,8 @@ install:
- sudo apt-get install ${SERVER_PACKAGE} - sudo apt-get install ${SERVER_PACKAGE}
before_script: before_script:
- if dpkg --compare-versions ${SERVER_VERSION} le "2.4"; then export SERVER_SERVICE=mongodb; else export SERVER_SERVICE=mongod; fi
- if ! nc -z localhost 27017; then sudo service ${SERVER_SERVICE} start; fi
- mongod --version - mongod --version
- pecl install -f mongodb-${DRIVER_VERSION} - pecl install -f mongodb-${DRIVER_VERSION}
- php --ri mongodb - php --ri mongodb
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment