This repository has been archived by the owner on May 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,399 changed files
with
603,796 additions
and
55,806 deletions.
There are no files selected for viewing
This file contains 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,68 @@ | ||
references: | ||
c3-build-image: &c3-build-image | ||
circleci/classic:latest | ||
|
||
version: 2 | ||
jobs: | ||
build: | ||
machine: | ||
image: *c3-build-image | ||
|
||
working_directory: /home/circleci/.go_workspace/src/github.com/c3systems/c3 | ||
steps: | ||
- run: | ||
name: Install Golang | ||
command: | | ||
sudo add-apt-repository ppa:gophers/archive | ||
sudo apt-get update -y | ||
sudo apt-get install golang-1.10-go -y | ||
export GOPATH=/home/circleci/.go_workspace | ||
export PATH=$PATH:$GOPATH/bin | ||
go version | ||
- run: | ||
name: Install Docker | ||
command: | | ||
set -x | ||
VER="18.03.1-ce" | ||
curl -L -o /tmp/docker-$VER.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$VER.tgz | ||
tar -xz -C /tmp -f /tmp/docker-$VER.tgz | ||
sudo mv /tmp/docker/* /usr/bin | ||
- run: | ||
name: Install IPFS | ||
command: | | ||
set -x | ||
wget https://dist.ipfs.io/go-ipfs/v0.4.14/go-ipfs_v0.4.14_linux-amd64.tar.gz -O /tmp/go-ipfs.tar.gz | ||
cd /tmp | ||
tar xvfz go-ipfs.tar.gz | ||
sudo cp go-ipfs/ipfs /home/circleci/bin/ | ||
ipfs version | ||
- run: | ||
name: Run IPFS daemon | ||
command: | | ||
ipfs init | ||
ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001 | ||
ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/9001 | ||
ipfs daemon & | ||
- run: | ||
name: Configure Docker Daemon | ||
command: | | ||
export IP=$(ifconfig | grep eth0 -A 5 | grep addr:1 | awk {'print $2'} | sed -e "s/addr://") | ||
echo "{ \"insecure-registries\": [ \"$IP:5000\" ] }" | sudo tee /etc/docker/daemon.json | ||
sudo service docker restart | ||
- checkout | ||
|
||
- run: | ||
name: Tests | ||
command: | | ||
make test | ||
workflows: | ||
version: 2 | ||
all: | ||
jobs: | ||
- build |
This file contains 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 |
---|---|---|
|
@@ -24,3 +24,15 @@ build/ | |
|
||
# misc | ||
notes.txt | ||
|
||
.data/ | ||
|
||
.testfiles/ | ||
|
||
*.pem | ||
|
||
*.tar | ||
|
||
node/test_data/go_example_image.tar | ||
|
||
coverage.out |
This file contains 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,13 @@ | ||
language: go | ||
go: | ||
- 1.10.x | ||
- master | ||
script: | ||
- go test -v -covermode=count -coverprofile=coverage.out | ||
- $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken=$COVERALLS_TOKEN | ||
env: | ||
global: | ||
- secure: N88ftOGSDRHO4rz4UQ3wVNnuQQP8/qseQBKQ3F9FzJ8oe2Gkj7d7dv3oEGQeBzkwua25zNRo+HxTTUOBBcYvd7TuBmsir2OKKB4kggI1BgcjeszfCF55RFNDZqwB4l4YnQW106k1xql2FiCWBLt439rPjtqkuaBqneiFWz1pKAagL7r8OxU6VuAUk6YsctVPY7SgVCNJhWbkBosRl+pbDqKegYiztW11eIysNb8JQsjmDiyZZyMy11eh4YbF5EFtGdy2TpGqV92tzU3j4/6maIDZ8B5I9NxRLAhuxOqwqcsW8ri4tc3jiaaDG6fRK1ScRzXQ4cFhBxQ+5e/5cEt0VYuu2mxt8UX+ryZas6fFYjEin9Lwtp/wnOupAWolHX9PXrOlRxAlVBDDRA5AwgUD3Pgi252lACL2r/+u+jfZU20Kv3nxrAaYKLHyrh3oV5ObaQddgYblN3+X48+GDM2z5VkNyjh+Cg9aJO+yTgFA32IO1Sq/mdLh9P94cdvTRVLFkhTddgrKhKAXiOVWN3ojNLulu8A+d/Q5TzPzlbIbHs8z537uC7Q20rkYYHt53guVCNIOYMO8fSqKFHuGrX0ZKUefEJ5U18YNWIOIxB/zX+N4+3MAYP89pIz4Uj+FPQgkBAp+XQJvOD1u+6yvFAKI4Lfr0wZ8m/Us8u4YvEm9fzQ= | ||
install: | ||
- go get golang.org/x/tools/cmd/cover | ||
- go get github.com/mattn/goveralls |
Oops, something went wrong.