Skip to content

Commit 5d6d848

Browse files
committed
Use token-contracts and platform-contracts for building from local dirs
1 parent ca8daf5 commit 5d6d848

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.circleci/config.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,38 @@ jobs:
2828
sudo apt-get -y install python3 python3-pip
2929
# Install other
3030
sudo apt-get -y install libudev-dev libusb-1.0-0-dev
31+
- run:
32+
name: Build token-contracts
33+
command: |
34+
cd $SINGNET_REPOS
35+
git https://github.com/singnet/token-contracts.git
36+
cd token-contracts
37+
npm install
38+
npm run-script compile
39+
npm run-script package-npm
3140
- run:
3241
name: Build platform-contracts
3342
command: |
3443
cd $SINGNET_REPOS
3544
git clone https://github.com/singnet/platform-contracts.git
3645
cd platform-contracts
37-
npm install
3846
npm install ganache-cli
47+
# install token-contracts from local dir
48+
npm install $SINGNET_REPOS/token-contracts/build/npm-module
49+
npm install
50+
npm run-script compile
51+
npm run-script package-npm
3952
- run:
4053
name: Build snet-cli
4154
command: |
4255
cd $SINGNET_REPOS
4356
git clone https://github.com/singnet/snet-cli.git
4457
cd snet-cli
58+
# install token-contracts and platform-contracts from local dir
59+
cd blockchain/
60+
npm install $SINGNET_REPOS/token-contracts/build/npm-module
61+
npm install $SINGNET_REPOS/platform-contracts/build/npm-module
62+
cd ..
4563
./scripts/blockchain install
4664
pip3 install -e .
4765
- run:
@@ -51,6 +69,11 @@ jobs:
5169
cd $SINGNET_REPOS
5270
git clone https://github.com/singnet/snet-daemon.git
5371
cd snet-daemon
72+
# install token-contracts and platform-contracts from local dir
73+
cd resources/blockchain
74+
npm install $SINGNET_REPOS/token-contracts/build/npm-module
75+
npm install $SINGNET_REPOS/platform-contracts/build/npm-module
76+
cd ..
5477
./scripts/install
5578
./scripts/build linux amd64
5679
- run:

0 commit comments

Comments
 (0)