简体   繁体   中英

CI Hyperledger Composer with Jenkins

I am trying to implement CI at my project using Jenkins but I have an error at the Hyperledger Composer module that I do not know how to solve. My unit tests are written using Mocha and Chai.

Error:

ReferenceError: require is not defined
at _generator (eval at <anonymous> (eval at compile (node_modules/composer-runtime/lib/scriptcompiler.js:99:33)), <anonymous>:18:23)
at CompiledScriptBundle.execute (node_modules/composer-runtime/lib/compiledscriptbundle.js:53:29)
at Engine._executeTransaction (node_modules/composer-runtime/lib/engine.transactions.js:125:84)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)

Does anybody knows how to solve this problem? Or, does anybody recommends another CI software who works better to test our hyperledger composer code?

Thank you in advance! 🙂

Composer builds currently run using Travis CI - see more here https://hyperledger.github.io/composer/latest/business-network/testing and more info here https://github.com/hyperledger/composer/wiki/Builds incl links. Its possible your test error is because you are running into something similar to this ? require is not defined? node.js

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM