This article is about Codeship Basic.

Using MongoDB In CI/CD with Codeship Basic

Estimated Reading Time: 1 min

MongoDB 2.6.4 runs on the default port and doesn’t require any credentials.

If you need to test against another version of MongoDB, see the MongoDB script on the codeship/scripts GitHub repository.

Simply set the MONGODB_VERSION environment variable and include the script via the following command in your setup steps.

\curl -sSL | bash -s

This will start a MongoDB server on port 27018. (You can change the port via the MONGODB_PORT environment variable, if you want to.)

Need More Help?

Get in touch if you need more help, or post on Stack Overflow using the tag #Codeship.

  • Ask The Helpdesk A Question
  • Code Examples And Sample Projects
    • Was This Article Helpful?