When you move around with git, sometimes the target files need rebuilding but have up-to-date timestamps, so we clean first to force a rebuild. --always-make is a GNU option, so we cannot use it. We cannot use a single make invocation (make clean mocha.js), since MAKEFLAGS=-j2 in the environment can cause race conditions. Oh the joy of make.
With SSL it failed for me with a certificate error: http://stackoverflow.com/questions/10246023/bundle-install-fails-with-ssl-certificate-verification-error
Practicing what I preach in http://www.solitr.com/blog/2012/04/contributor-friendly-gems/
- Extract mocha setup options to Konacha.mochaOptions - Adding a simple test for Konacha.mochaOptions - You can't introspect mocha to find out which options have been set. This leads to a bit of a dirty mirror test. -