Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Update Circle references to implementation/
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowfiend committed Mar 23, 2020
1 parent 4c1a71f commit 3885a60
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
- checkout
- run:
name: Authenticate GitHub Package Registry
working_directory: ~/project/implementation
working_directory: ~/project/solidity
command: echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> .npmrc
- persist_to_workspace:
root: .
paths:
- implementation/.npmrc
- solidity/.npmrc

compile_contracts:
executor: docker-node
Expand All @@ -38,23 +38,23 @@ jobs:
- restore_cache:
keys:
# When lock file changes, use increasingly general patterns to restore cache.
- v1-client-npm-deps-{{ .Branch }}-{{ checksum "implementation/package-lock.json" }}
- v1-client-npm-deps-{{ .Branch }}-{{ checksum "solidity/package-lock.json" }}
- v1-client-npm-deps-{{ .Branch }}-
- v1-client-npm-deps-
- run: cd implementation && npm install
- run: cd solidity && npm install
- save_cache:
key: v1-client-npm-deps-{{ .Branch }}-{{ checksum "implementation/package-lock.json" }}
key: v1-client-npm-deps-{{ .Branch }}-{{ checksum "solidity/package-lock.json" }}
paths:
- implementation/node_modules
- solidity/node_modules

- run: cd implementation && node_modules/.bin/truffle compile
- run: cd solidity && node_modules/.bin/truffle compile

# Persist for downstream use.
- persist_to_workspace:
root: .
paths:
- implementation/node_modules
- implementation/build/contracts
- solidity/node_modules
- solidity/build/contracts

lint:
executor: docker-node
Expand All @@ -64,7 +64,7 @@ jobs:
at: .
- run:
name: Lint Implementation
working_directory: ~/project/implementation
working_directory: ~/project/solidity
command: |
set -ex
npm run lint
Expand All @@ -77,12 +77,12 @@ jobs:
- run: sudo npm install -g ganache-cli@6.4.2
- run:
name: Running testrpc
working_directory: ~/project/implementation
working_directory: ~/project/solidity
command: ganache-cli
background: true
- run:
name: Run NPM tests
working_directory: ~/project/implementation
working_directory: ~/project/solidity
command: npm run test:quick
generate_pngs:
docker:
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
- run:
name: Generate solidity docs
command: |
cd implementation/docs
cd solidity/docs
mkdir -p output
node generate-api-docs.js > output/index.adoc
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
at: .
- run:
name: Remove Installed node_module
working_directory: ~/project/implementation
working_directory: ~/project/solidity
command: |
rm -rf node_modules
- run:
Expand All @@ -197,7 +197,7 @@ jobs:
gcloud auth activate-service-account --key-file ~/gcloud-service-key.json
export UNISWAP_CONTRACT_DATA="uniswap-contract-data.txt"
export BONDED_ECDSA_KEEP_VENDOR_CONTRACT_DATA="BondedECDSAKeepVendor.json"
implementation/scripts/circleci-provision-external-contracts.sh
solidity/scripts/circleci-provision-external-contracts.sh
- run:
name: Migrate Contracts
command: |
Expand All @@ -206,7 +206,7 @@ jobs:
export BUILD_TAG=$CIRCLE_SHA1
export TRUFFLE_NETWORK=$TRUFFLE_NETWORK
mkdir -p /tmp/tbtc/contracts
implementation/scripts/circleci-migrate-contracts.sh
solidity/scripts/circleci-migrate-contracts.sh
- persist_to_workspace:
root: /tmp/tbtc
paths:
Expand Down

0 comments on commit 3885a60

Please sign in to comment.