Skip to content

Commit 19a80e3

Browse files
author
Jonathan Gaillard
committed
Add waiting for mongo in travis build
1 parent bd701f3 commit 19a80e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ before_install:
1818
before_script:
1919
- composer self-update
2020
- yes '' | pecl install -f mongo-${EXT_VERSION}
21+
# wait for mongo, start is only needed for 2.4 package, see http://tldp.org/LDP/abs/html/devref1.html for description of this syntax.
22+
- sudo service mongodb start; bash -c 'while ! exec 6<>/dev/tcp/localhost/27017; do echo "$(date) - still trying to connect to mongo"; sleep 1; done'
2123
script: ./build.php

0 commit comments

Comments
 (0)