meteor Basic Codeship Setup for Automated Testing Setup Codeship


Example

  • Go to Codeship.com 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 meteor_install_script.sh https://install.meteor.com/
        chmod +x meteor_install_script.sh
        sed -i "s/type sudo >\/dev\/null 2>&1/\ false /g" meteor_install_script.sh
        ./meteor_install_script.sh
        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