Solidity Development – Continuous Integration and Delivery (CI/CD) for Smart Contracts

solidity

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?

Best Answer

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.