Skip to content

Commit

Permalink
[circleci] update golang
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Mar 6, 2019
1 parent 551039e commit 1641bf1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 222 deletions.
7 changes: 5 additions & 2 deletions .circleci/config.yml
Expand Up @@ -13,9 +13,12 @@ jobs:
- 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
cd /tmp
wget https://dl.google.com/go/go1.11.linux-amd64.tar.gz
sudo tar -xvf go1.11.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo mv go /usr/local
export GOPATH=/home/circleci/.go_workspace
export PATH=$PATH:$GOPATH/bin
go version
Expand Down
21 changes: 0 additions & 21 deletions Makefile
Expand Up @@ -8,27 +8,6 @@ PROJECTNAME=$(shell basename "$(PWD)")
install:
@go get $(get)

DOCKER_VERSION=18.03.1-ce

.PHONY: test/install-deps
test/install-deps:
set -x
# install Docker
curl -L -o /tmp/docker-$(DOCKER_VERSION).tgz https://download.docker.com/linux/static/stable/x86_64/docker-$$DOCKER_VERSION.tgz
tar -xz -C /tmp -f /tmp/docker-$(DOCKER_VERSION).tgz
sudo mv /tmp/docker/* /usr/bin
# install IPFS
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 /usr/bin/
ipfs version
# run IPFS daemon
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 &

## test: Runs `go test` on project test files.
.PHONY: test
test:
Expand Down
18 changes: 5 additions & 13 deletions go.mod
Expand Up @@ -4,15 +4,12 @@ require (
github.com/Microsoft/go-winio v0.4.11 // indirect
github.com/btcsuite/btcd v0.0.0-20190213025234-306aecffea32 // indirect
github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927 // indirect
github.com/davecgh/go-spew v1.1.1
github.com/docker/distribution v2.7.1+incompatible
github.com/docker/distribution v2.7.1+incompatible // indirect
github.com/docker/docker v1.13.1
github.com/docker/go-connections v0.4.0
github.com/docker/go-units v0.3.3
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.3.3 // indirect
github.com/fatih/color v1.7.0
github.com/gogo/protobuf v1.2.0 // indirect
github.com/google/go-cmp v0.2.0 // indirect
github.com/gorilla/mux v1.7.0 // indirect
github.com/gxed/hashland v0.0.0-20180221191214-d9f6b97f8db2 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/ipfs/go-ipfs-api v1.3.5
Expand All @@ -26,25 +23,20 @@ require (
github.com/libp2p/go-libp2p-pubsub v0.11.10 // indirect
github.com/mattn/go-colorable v0.1.0 // indirect
github.com/mattn/go-isatty v0.0.4 // indirect
github.com/mdempsky/gocode v0.0.0-20190203001940-7fb65232883f // indirect
github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1 // indirect
github.com/minio/sha256-simd v0.0.0-20190131020904-2d45a736cd16 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/morikuni/aec v0.0.0-20170113033406-39771216ff4c // indirect
github.com/mr-tron/base58 v1.1.0 // indirect
github.com/multiformats/go-multiaddr v1.4.0 // indirect
github.com/multiformats/go-multiaddr-dns v0.2.5 // indirect
github.com/multiformats/go-multiaddr-net v1.7.1 // indirect
github.com/multiformats/go-multihash v1.0.8 // indirect
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
github.com/opencontainers/image-spec v1.0.1 // indirect
github.com/pkg/errors v0.8.1
github.com/pkg/errors v0.8.1 // indirect
github.com/sirupsen/logrus v1.3.0
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72 // indirect
github.com/spf13/cobra v0.0.3
github.com/spf13/pflag v1.0.3 // indirect
github.com/whyrusleeping/tar-utils v0.0.0-20180509141711-8c6c8ba81d5c // indirect
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c // indirect
gotest.tools v2.2.0+incompatible // indirect
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd // indirect
)

0 comments on commit 1641bf1

Please sign in to comment.