I need to setup a mongodb replicaSet in travisci, so that I can test mongodb transactions within my repository.
So far there seems to be very few examples of how this should be done. So far I have only found:
But it leans on using sleep methods for replicaset setup, which I find little hackish/unreliable. I would have thought that somebody would have more sophisticated method after 5 years.
Same applies to another repo:
Or little bit never version (which probably eliminates sleeps by doing something else meanwhile)
Any guidance? What should I do?