I am setting up private ethereum (Quorum) and I am trying very hard to see if one could setup a Continuous Integration / Continuous Delivery (CI/CD) infrastructure for Smart Contract Development?

Currently I am using truffle to compile and migrate my smart contract to quorum. I wish to automate that process.

Has anyone done CI/CD with solidity?

  • 2
    It should be fairly straightforward to just have Jenkins or Circle or Travis run a migration if tests succeed. All you would need is key(s) on the CI server with enough ether. – Raghav Sood Aug 4 '18 at 3:09
  • An easy solution is to run a ganache server before tests and shutdown when tests are complete. Another solution involves running a private instance with parity/geth (both have a development chain that can be used for that). – Ismael Aug 6 '18 at 20:33
  • Right. What is ganache specified role in ci/cd? – Nathan Aw Aug 7 '18 at 0:16

A simple solution is to use ganache, a test blockchain to run tests, I prefer to use the docker image https://hub.docker.com/r/trufflesuite/ganache-cli/ and migrate the contracts to the container and then run tests.

Although you can migrate contracts through CI/CD, unless you are using a test network such as ropsten, rinkeby or kovan, I would migrate contracts to main net manually because it costs eth. I don't know if quorum has any test networks.

  • thanks! I am looking and exploring how one can push smart contracts seamlessly across different testnets and mainnets -- any idea would be great – Nathan Aw Sep 22 '18 at 15:14
  • Consider looking into the Gorli testnet ethnews.com/the-goerli-testnet-has-arrived, it is suppose to be a universal testnet – GrandFleet Nov 20 '18 at 21:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.