meteor Basic Codeship Setup for Automated Testing

Setup Codeship

  • Go to and create an account (or login)
  • Create a new project
  • Import your project via Github or Bitbucket
  • On the screen "Configure Your Tests" use these commands:
    • Select "I want to create my own custom commands" from the "Select your technology to prepopulate basic commands" dropdown.

    • Enter the following commands:

        curl -o
        chmod +x
        sed -i "s/type sudo >\/dev\/null 2>&1/\ false /g"
        export PATH=$PATH:~/.meteor/
        meteor --version
        meteor npm install
    • Leave the test commands like this:

      npm test
  • Push a new commit to Github / Bitbucket
  • That's it

Prepare the Project

  • Write some tests
  • Install dispatch:mocha-phantomjs:
    meteor add dispatch:mocha-phantomjs
  • Add a test-command to your package.json.
      "name": "awesome meteor package",
      "scripts": {
        "test": "meteor test --driver-package dispatch:mocha-phantomjs --once"
  • Make sure that you can run npm test in your project root.