Search code examples
meteorcodeshipmodulus.io

Meteor + CodeShip + Modulus


Can anyone recommend a good setup script to deploy to Modulus after passing tests?

Right now I'm using:

nvm install 0.10.28
nvm use 0.10.28
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

Which is basically what I've managed to copy + paste around the interwebz and I have no idea what I'm doing.

Finally my test pipeline is:

meteor --test

The output from CodeShip logs:

I20150515-13:34:16.005(0)? [velocity] mocha is starting a mirror at http://localhost:44995/.
I20150515-13:34:16.006(0)? [velocity] This takes a few minutes the first time.
I20150515-13:34:16.006(0)? [velocity] You can see the mirror logs at: tail -f /home/rof/src/bitbucket.org/atlasshrugs/garden/.meteor/local/log/mocha.log
PASSED mocha : Server initialization => should have a Meteor version defined

As soon as it gets to the client-side tests, it hangs for ever and fails to build.

Any suggestions?


Solution

  • According to the Velocity readme you should use this command: meteor --test --release velocity:METEOR@1.1.0.3_1. I did manage to get it work using the following setup commands:

    nvm install 0.10.30
    nvm use 0.10.30
    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
    

    and this test command (replacing the with the path to the Meteor app directory. In this case sanjo:jasmine is required, but if you use another tester, you might need to add the related package. The velocity:html-reporter package is overkill for this purpose, but it does works, the console reporter should be enough, but I didn't test it):

    cd ~/src/bitbucket.org/<path>/ && 
    meteor add sanjo:jasmine velocity:html-reporter && 
    meteor --test --release velocity:METEOR@1.1.0.3_1