Merge pull request #1285 from nspcc-dev/drop-go1.12-2.x

[2.x] Drop go 1.12 support
This commit is contained in:
Roman Khimov 2020-08-07 12:40:12 +03:00 committed by GitHub
commit 92851aa8e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 25 deletions

View file

@ -3,11 +3,6 @@ orbs:
codecov: codecov/codecov@1.0.5 codecov: codecov/codecov@1.0.5
executors: executors:
go1_12:
docker:
- image: circleci/golang:1.12
environment:
GO111MODULE: "on"
go1_13: go1_13:
docker: docker:
- image: circleci/golang:1.13 - image: circleci/golang:1.13
@ -54,16 +49,6 @@ jobs:
name: go-vet name: go-vet
command: go vet ./... command: go vet ./...
test_1_12:
working_directory: /go/src/github.com/nspcc-dev/neo-go
executor: go1_12
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init
- gomod
- run: go test -v -race ./...
test_1_13: test_1_13:
working_directory: /go/src/github.com/nspcc-dev/neo-go working_directory: /go/src/github.com/nspcc-dev/neo-go
executor: go1_13 executor: go1_13
@ -88,7 +73,7 @@ jobs:
build_cli: build_cli:
working_directory: /go/src/github.com/nspcc-dev/neo-go working_directory: /go/src/github.com/nspcc-dev/neo-go
executor: go1_12 executor: go1_14
steps: steps:
- checkout - checkout
- gomod - gomod
@ -99,7 +84,7 @@ jobs:
build_image: build_image:
working_directory: /go/src/github.com/nspcc-dev/neo-go working_directory: /go/src/github.com/nspcc-dev/neo-go
executor: go1_12 executor: go1_14
docker: docker:
- image: golang:1-alpine - image: golang:1-alpine
steps: steps:
@ -130,10 +115,6 @@ workflows:
filters: filters:
tags: tags:
only: v/[0-9]+\.[0-9]+\.[0-9]+/ only: v/[0-9]+\.[0-9]+\.[0-9]+/
- test_1_12:
filters:
tags:
only: v/[0-9]+\.[0-9]+\.[0-9]+/
- test_1_13: - test_1_13:
filters: filters:
tags: tags:

View file

@ -1,6 +1,6 @@
language: go language: go
go: go:
- 1.12.x - 1.14.x
env: env:
- GO111MODULE=on - GO111MODULE=on
install: install:

View file

@ -26,7 +26,7 @@ build: deps
@set -x \ @set -x \
&& export GOGC=off \ && export GOGC=off \
&& export CGO_ENABLED=0 \ && export CGO_ENABLED=0 \
&& go build -v -mod=vendor -ldflags $(BUILD_FLAGS) -o ${BINARY} ./cli/main.go && go build -trimpath -v -mod=vendor -ldflags $(BUILD_FLAGS) -o ${BINARY} ./cli/main.go
neo-go.service: neo-go.service.template neo-go.service: neo-go.service.template
@sed -r -e 's_BINDIR_$(BINDIR)_' -e 's_UNITWORKDIR_$(UNITWORKDIR)_' -e 's_SYSCONFIGDIR_$(SYSCONFIGDIR)_' $< >$@ @sed -r -e 's_BINDIR_$(BINDIR)_' -e 's_UNITWORKDIR_$(UNITWORKDIR)_' -e 's_SYSCONFIGDIR_$(SYSCONFIGDIR)_' $< >$@

View file

@ -35,7 +35,7 @@ branch and only contain Neo 2 code.
## Installation ## Installation
Go: 1.12+ Go: 1.13+
Install dependencies. Install dependencies.

2
go.mod
View file

@ -26,4 +26,4 @@ require (
gopkg.in/abiosoft/ishell.v2 v2.0.0 gopkg.in/abiosoft/ishell.v2 v2.0.0
) )
go 1.12 go 1.13