Browse Source

golang 1.12.0 (#3376)

- update docker image on circleci
 - remove GOCACHE=off from Makefile (see:
 https://tip.golang.org/doc/go1.12#gocache)
 - update badge in readme
 - update in scripts/install
 - update Vagrantfile
 - update in networks/remote/integration.sh
 - tools/build/Makefile
pull/3382/head
Ismail Khoffi 6 years ago
committed by Anton Kaliaev
parent
commit
1eaa42cd25
9 changed files with 15 additions and 15 deletions
  1. +2
    -2
      .circleci/config.yml
  2. +3
    -3
      Makefile
  3. +1
    -1
      README.md
  4. +3
    -3
      Vagrantfile
  5. +2
    -2
      networks/remote/integration.sh
  6. +1
    -1
      scripts/install/install_tendermint_arm.sh
  7. +1
    -1
      scripts/install/install_tendermint_bsd.sh
  8. +1
    -1
      scripts/install/install_tendermint_ubuntu.sh
  9. +1
    -1
      tools/build/Makefile

+ 2
- 2
.circleci/config.yml View File

@ -3,7 +3,7 @@ version: 2
defaults: &defaults defaults: &defaults
working_directory: /go/src/github.com/tendermint/tendermint working_directory: /go/src/github.com/tendermint/tendermint
docker: docker:
- image: circleci/golang:1.11.4
- image: circleci/golang:1.12.0
environment: environment:
GOBIN: /tmp/workspace/bin GOBIN: /tmp/workspace/bin
@ -154,7 +154,7 @@ jobs:
for pkg in $(go list github.com/tendermint/tendermint/... | circleci tests split --split-by=timings); do for pkg in $(go list github.com/tendermint/tendermint/... | circleci tests split --split-by=timings); do
id=$(basename "$pkg") id=$(basename "$pkg")
GOCACHE=off go test -v -timeout 5m -race -coverprofile=/tmp/workspace/profiles/$id.out -covermode=atomic "$pkg" | tee "/tmp/logs/$id-$RANDOM.log"
go test -v -timeout 5m -race -coverprofile=/tmp/workspace/profiles/$id.out -covermode=atomic "$pkg" | tee "/tmp/logs/$id-$RANDOM.log"
done done
- persist_to_workspace: - persist_to_workspace:
root: /tmp/workspace root: /tmp/workspace


+ 3
- 3
Makefile View File

@ -131,7 +131,7 @@ clean_certs:
rm -f db/remotedb/::.crt db/remotedb/::.key rm -f db/remotedb/::.crt db/remotedb/::.key
test_libs: gen_certs test_libs: gen_certs
GOCACHE=off go test -tags gcc $(PACKAGES)
go test -tags gcc $(PACKAGES)
make clean_certs make clean_certs
grpc_dbserver: grpc_dbserver:
@ -214,11 +214,11 @@ vagrant_test:
### go tests ### go tests
test: test:
@echo "--> Running go test" @echo "--> Running go test"
@GOCACHE=off go test -p 1 $(PACKAGES)
go test -p 1 $(PACKAGES)
test_race: test_race:
@echo "--> Running go test --race" @echo "--> Running go test --race"
@GOCACHE=off go test -p 1 -v -race $(PACKAGES)
go test -p 1 -v -race $(PACKAGES)
# uses https://github.com/sasha-s/go-deadlock/ to detect potential deadlocks # uses https://github.com/sasha-s/go-deadlock/ to detect potential deadlocks
test_with_deadlock: test_with_deadlock:


+ 1
- 1
README.md View File

@ -8,7 +8,7 @@ Or [Blockchain](https://en.wikipedia.org/wiki/Blockchain_(database)), for short.
[![API Reference]( [![API Reference](
https://camo.githubusercontent.com/915b7be44ada53c290eb157634330494ebe3e30a/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f676f6c616e672f6764646f3f7374617475732e737667 https://camo.githubusercontent.com/915b7be44ada53c290eb157634330494ebe3e30a/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f676f6c616e672f6764646f3f7374617475732e737667
)](https://godoc.org/github.com/tendermint/tendermint) )](https://godoc.org/github.com/tendermint/tendermint)
[![Go version](https://img.shields.io/badge/go-1.10.4-blue.svg)](https://github.com/moovweb/gvm)
[![Go version](https://img.shields.io/badge/go-1.12.0-blue.svg)](https://github.com/moovweb/gvm)
[![riot.im](https://img.shields.io/badge/riot.im-JOIN%20CHAT-green.svg)](https://riot.im/app/#/room/#tendermint:matrix.org) [![riot.im](https://img.shields.io/badge/riot.im-JOIN%20CHAT-green.svg)](https://riot.im/app/#/room/#tendermint:matrix.org)
[![license](https://img.shields.io/github/license/tendermint/tendermint.svg)](https://github.com/tendermint/tendermint/blob/master/LICENSE) [![license](https://img.shields.io/github/license/tendermint/tendermint.svg)](https://github.com/tendermint/tendermint/blob/master/LICENSE)
[![](https://tokei.rs/b1/github/tendermint/tendermint?category=lines)](https://github.com/tendermint/tendermint) [![](https://tokei.rs/b1/github/tendermint/tendermint?category=lines)](https://github.com/tendermint/tendermint)


+ 3
- 3
Vagrantfile View File

@ -29,10 +29,10 @@ Vagrant.configure("2") do |config|
usermod -a -G docker vagrant usermod -a -G docker vagrant
# install go # install go
wget -q https://dl.google.com/go/go1.11.linux-amd64.tar.gz
tar -xvf go1.11.linux-amd64.tar.gz
wget -q https://dl.google.com/go/go1.12.linux-amd64.tar.gz
tar -xvf go1.12.linux-amd64.tar.gz
mv go /usr/local mv go /usr/local
rm -f go1.11.linux-amd64.tar.gz
rm -f go1.12.linux-amd64.tar.gz
# install nodejs (for docs) # install nodejs (for docs)
curl -sL https://deb.nodesource.com/setup_11.x | bash - curl -sL https://deb.nodesource.com/setup_11.x | bash -


+ 2
- 2
networks/remote/integration.sh View File

@ -10,8 +10,8 @@ sudo apt-get upgrade -y
sudo apt-get install -y jq unzip python-pip software-properties-common make sudo apt-get install -y jq unzip python-pip software-properties-common make
# get and unpack golang # get and unpack golang
curl -O https://storage.googleapis.com/golang/go1.10.linux-amd64.tar.gz
tar -xvf go1.10.linux-amd64.tar.gz
curl -O https://storage.googleapis.com/golang/go1.12.linux-amd64.tar.gz
tar -xvf go1.12.linux-amd64.tar.gz
## move binary and add to path ## move binary and add to path
mv go /usr/local mv go /usr/local


+ 1
- 1
scripts/install/install_tendermint_arm.sh View File

@ -5,7 +5,7 @@ REPO=github.com/tendermint/tendermint
# change this to a specific release or branch # change this to a specific release or branch
BRANCH=master BRANCH=master
GO_VERSION=1.11.4
GO_VERSION=1.12.0
sudo apt-get update -y sudo apt-get update -y


+ 1
- 1
scripts/install/install_tendermint_bsd.sh View File

@ -16,7 +16,7 @@
set BRANCH=master set BRANCH=master
set REPO=github.com/tendermint/tendermint set REPO=github.com/tendermint/tendermint
set GO_VERSION=1.11.4
set GO_VERSION=1.12.0
sudo pkg update sudo pkg update


+ 1
- 1
scripts/install/install_tendermint_ubuntu.sh View File

@ -13,7 +13,7 @@ REPO=github.com/tendermint/tendermint
# change this to a specific release or branch # change this to a specific release or branch
BRANCH=master BRANCH=master
GO_VERSION=1.11.4
GO_VERSION=1.12.0
sudo apt-get update -y sudo apt-get update -y
sudo apt-get install -y make sudo apt-get install -y make


+ 1
- 1
tools/build/Makefile View File

@ -4,7 +4,7 @@
requirements_check = true requirements_check = true
gpg_check = false gpg_check = false
go_min_version = 1.9.4
go_min_version = 1.12.0
gpg_key = 2122CBE9 gpg_key = 2122CBE9
ifeq ($(requirements_check),true) ifeq ($(requirements_check),true)


Loading…
Cancel
Save