ethereum / solc-js

Javascript bindings for the Solidity compiler
https://soliditylang.org
MIT License
1.45k stars 475 forks source link

Add caching of solc versions in tests #458

Open edisinovcic opened 4 years ago

edisinovcic commented 4 years ago

Add caching of solc versions in tests, possibly publish it as a npm package?

cameel commented 3 years ago

There's an option that allows skipping the downloads:

npx tape test/index.js --no-remote-versions

Does that help?

I'm not sure if optimizing this makes all that much sense but if someone wants to do it, the downloads happen here: https://github.com/ethereum/solc-js/blob/892010530ea6a0bebcffe51752e5dd9b3baf865f/test/compiler.js#L803-L823