File tree Expand file tree Collapse file tree 1 file changed +36
-4
lines changed Expand file tree Collapse file tree 1 file changed +36
-4
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,22 @@ version: 2
2
2
jobs :
3
3
build :
4
4
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
7
7
environment :
8
- SINGNET_REPOS : /go/src/github.com/singnet
8
+ GOPATH : /root/go
9
+ SINGNET_REPOS : /root/go/src/github.com/singnet
9
10
steps :
10
11
- run :
11
12
name : Install tools
12
13
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
13
19
# 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
15
21
# install IPFS
16
22
wget https://dist.ipfs.io/go-ipfs/v0.4.17/go-ipfs_v0.4.17_linux-amd64.tar.gz
17
23
tar xvfz go-ipfs_*.tar.gz
28
34
cd platform-contracts
29
35
npm install
30
36
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
You can’t perform that action at this time.
0 commit comments