The test failure on Travis is in plugman/install spec. It seems to only happen with a fresh checkout, once you run the test second time, it works ok. I was bitten by this before. Maybe something with bad management of temp dirs. I'll investigate.
For now just removing that spec file "fixes" the build on Travis: https://travis-ci.org/kamrik/cordova-lib/builds/30291305 The build is with .travis.yml with before_install: cd cordova-lib; rm spec-plugman/install.spec.js