tape: -r flag not working in Travis CI

https://travis-ci.org/oreqizer/creepx

Somehow tape thinks that -r is meant to be a file. When I tried -r=babel-register, it also complained that it’s not a module. It works fine locally, only broken in Travis CI.

Here’s the error report:

$ npm run clean && npm test && npm run test:flow && npm run lint && npm run build
> creepx@0.2.0 clean /home/travis/build/oreqizer/creepx
> rimraf es lib
> creepx@0.2.0 test /home/travis/build/oreqizer/creepx
> npm run test:base | faucet
module.js:544
    throw err;
    ^
Error: Cannot find module '/home/travis/build/oreqizer/creepx/-r'
    at Function.Module._resolveFilename (module.js:542:15)
    at Function.Module._load (module.js:472:25)
    at Module.require (module.js:585:17)
    at require (internal/module.js:11:18)
    at /home/travis/build/oreqizer/creepx/node_modules/faucet/node_modules/tape/bin/tape:5:5
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/travis/build/oreqizer/creepx/node_modules/faucet/node_modules/tape/bin/tape:4:23)
    at Module._compile (module.js:641:30)
    at Object.Module._extensions..js (module.js:652:10)
    at Module.load (module.js:560:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! creepx@0.2.0 test:base: `tape -r babel-register 'src/**/__tests__/*.spec.js'`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the creepx@0.2.0 test:base script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2017-11-18T06_53_29_241Z-debug.log

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

@jameswomack Increasing pressure by 20% 😉

capture d ecran 2017-11-28 a 02 23 30