From 10804af2292c0c38f68ff769588db6327c8423a1 Mon Sep 17 00:00:00 2001 From: Marccio Silva Date: Fri, 30 Jul 2021 15:39:00 -0300 Subject: [PATCH] Add comment explaining gas limit in ganache-cli Docker containers, general refactor in circleci configuration --- .circleci/config.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f5964312b..8cf3beb41 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,24 +4,30 @@ jobs: working_directory: ~/repo docker: - image: circleci/node:lts - # Specify service dependencies here if necessary - # CircleCI maintains a library of pre-built images - # documented at https://circleci.com/docs/2.0/circleci-images/ - # - image: circleci/mongo:3.4.4 + # The first ganache-cli container is meant to simulate a main chain, and the second one for a side chain (integration testing only) - image: trufflesuite/ganache-cli + # The gas limit is 6700000 to avoid trying to deploy a contract larger than expected command: ganache-cli -i 5777 -l 6700000 -k istanbul - image: trufflesuite/ganache-cli - command: ganache-cli -i 5776 -p 8546 -k istanbul + command: ganache-cli -i 5776 -p 8546 -l 6700000 -k istanbul steps: - checkout # Download and cache dependencies - restore_cache: keys: - v1-dependencies-{{ checksum "bridge/package.json" }} - # fallback to using the latest cache if no exact match is found + # Fallback to using the latest cache if no exact match is found - v1-dependencies- - - run: cd bridge && npm ci - - run: cd federator && npm ci + - run: + name: install bridge dependencies + command: | + cd bridge + npm ci + - run: + name: install federator dependencies + command: | + cd federator + npm ci - save_cache: paths: - bridge/node_modules