Skip to content

Commit a9aaffa

Browse files
committed
Use ubuntu:latest image and build snet-cli, snet-daemon, and example-service in circleci config file
1 parent f640dc2 commit a9aaffa

File tree

1 file changed

+36
-4
lines changed

1 file changed

+36
-4
lines changed

.circleci/config.yml

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,22 @@ version: 2
22
jobs:
33
build:
44
docker:
5-
- image: circleci/golang:1.9-node
6-
working_directory: /go/src/github.com/singnet
5+
- image: ubuntu:latest
6+
working_directory: /root/go/src/github.com/singnet
77
environment:
8-
SINGNET_REPOS: /go/src/github.com/singnet
8+
GOPATH: /root/go
9+
SINGNET_REPOS: /root/go/src/github.com/singnet
910
steps:
1011
- run:
1112
name: Install tools
1213
command: |
14+
export PATH=$PATH:$GOPATH/bin
15+
apt-get update
16+
apt-get -y install sudo wget git
17+
# Install NodeJS toolset
18+
sudo apt-get -y install nodejs npm
1319
# install protobuf
14-
sudo apt-get -y install golang-goprotobuf-dev golint
20+
sudo apt-get -y install golang go-dep golang-goprotobuf-dev golint
1521
# install IPFS
1622
wget https://dist.ipfs.io/go-ipfs/v0.4.17/go-ipfs_v0.4.17_linux-amd64.tar.gz
1723
tar xvfz go-ipfs_*.tar.gz
@@ -28,3 +34,29 @@ jobs:
2834
cd platform-contracts
2935
npm install
3036
npm install ganache-cli
37+
- run:
38+
name: Build snet-cli
39+
command: |
40+
cd $SINGNET_REPOS
41+
git clone https://github.com/singnet/snet-cli.git
42+
cd snet-cli
43+
./scripts/blockchain install
44+
pip3 install -e .
45+
- run:
46+
name: Build snet-daemon
47+
command: |
48+
export PATH=$PATH:$GOPATH/bin
49+
rm -rf $GOPATH/bin
50+
cd $SINGNET_REPOS
51+
git clone https://github.com/singnet/snet-daemon.git
52+
cd snet-daemon
53+
./scripts/install
54+
./scripts/build
55+
- run:
56+
name: Build example-service
57+
command: |
58+
export PATH=$PATH:$GOPATH/bin
59+
cd $SINGNET_REPOS
60+
git clone https://github.com/singnet/example-service.git
61+
cd example-service
62+
pip3 install -r requirements.txt

0 commit comments

Comments
 (0)