-
Notifications
You must be signed in to change notification settings - Fork 7
#1 Initial CircleCI support #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: ubuntu:latest | ||
working_directory: /root/go/src/github.com/singnet | ||
environment: | ||
GOPATH: /root/go | ||
SINGNET_REPOS: /root/go/src/github.com/singnet | ||
steps: | ||
- run: | ||
name: Install tools | ||
command: | | ||
export PATH=$PATH:$GOPATH/bin | ||
apt-get update | ||
apt-get -y install sudo wget git | ||
# Install NodeJS toolset | ||
sudo apt-get -y install nodejs npm | ||
# install protobuf | ||
sudo apt-get -y install golang go-dep golang-goprotobuf-dev golint | ||
# install IPFS | ||
wget https://dist.ipfs.io/go-ipfs/v0.4.17/go-ipfs_v0.4.17_linux-amd64.tar.gz | ||
tar xvfz go-ipfs_*.tar.gz | ||
cp ./go-ipfs/ipfs $GOPATH/bin | ||
# Installl Python | ||
sudo apt-get -y install python3 python3-pip | ||
# Install other | ||
sudo apt-get -y install libudev-dev libusb-1.0-0-dev | ||
- run: | ||
name: Build platform-contracts | ||
command: | | ||
cd $SINGNET_REPOS | ||
git clone https://github.com/singnet/platform-contracts.git | ||
cd platform-contracts | ||
npm install | ||
npm install ganache-cli | ||
- run: | ||
name: Build snet-cli | ||
command: | | ||
cd $SINGNET_REPOS | ||
git clone https://github.com/singnet/snet-cli.git | ||
cd snet-cli | ||
./scripts/blockchain install | ||
pip3 install -e . | ||
- run: | ||
name: Build snet-daemon | ||
command: | | ||
export PATH=$PATH:$GOPATH/bin | ||
rm -rf $GOPATH/bin | ||
cd $SINGNET_REPOS | ||
git clone https://github.com/singnet/snet-daemon.git | ||
cd snet-daemon | ||
./scripts/install | ||
./scripts/build linux amd64 | ||
- run: | ||
name: Build example-service | ||
command: | | ||
export PATH=$PATH:$GOPATH/bin | ||
cd $SINGNET_REPOS | ||
git clone https://github.com/singnet/example-service.git | ||
cd example-service | ||
pip3 install -r requirements.txt | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really minor, but it is better to add newline at the end of last line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the new line to the config file in the next pull request #4 which provides the integration test