Skip to content

Commit

Permalink
Add comment explaining gas limit in ganache-cli Docker containers, ge…
Browse files Browse the repository at this point in the history
…neral refactor in circleci configuration
  • Loading branch information
Marccio Silva committed Jul 30, 2021
1 parent 6c170b7 commit 10804af
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10804af

Please sign in to comment.