File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ jobs :
3
+ build :
4
+ docker :
5
+ - image : ubuntu:latest
6
+ working_directory : /root/go/src/github.com/singnet
7
+ environment :
8
+ GOPATH : /root/go
9
+ SINGNET_REPOS : /root/go/src/github.com/singnet
10
+ steps :
11
+ - run :
12
+ name : Install tools
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
19
+ # install protobuf
20
+ sudo apt-get -y install golang go-dep golang-goprotobuf-dev golint
21
+ # install IPFS
22
+ wget https://dist.ipfs.io/go-ipfs/v0.4.17/go-ipfs_v0.4.17_linux-amd64.tar.gz
23
+ tar xvfz go-ipfs_*.tar.gz
24
+ cp ./go-ipfs/ipfs $GOPATH/bin
25
+ # Installl Python
26
+ sudo apt-get -y install python3 python3-pip
27
+ # Install other
28
+ sudo apt-get -y install libudev-dev libusb-1.0-0-dev
29
+ - run :
30
+ name : Build platform-contracts
31
+ command : |
32
+ cd $SINGNET_REPOS
33
+ git clone https://github.com/singnet/platform-contracts.git
34
+ cd platform-contracts
35
+ npm install
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 linux amd64
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