mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-25 17:45:39 +00:00
ci: fix dep failure, add go versions
including new version of golang. Switch to go1.14 for linting. and remove the build of `dep`. We're on go modules for vendoring now. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
7ce6c9c696
commit
6912c50eda
2 changed files with 11 additions and 5 deletions
|
@ -1,6 +1,9 @@
|
||||||
language: go
|
language: go
|
||||||
go:
|
go:
|
||||||
- "1.x"
|
- "1.x"
|
||||||
|
- "1.14.x"
|
||||||
|
- "1.13.x"
|
||||||
|
- "1.12.x"
|
||||||
- "1.11.x"
|
- "1.11.x"
|
||||||
- "1.10.x"
|
- "1.10.x"
|
||||||
- "1.9.x"
|
- "1.9.x"
|
||||||
|
|
13
Makefile
13
Makefile
|
@ -6,6 +6,7 @@ SOURCE_FILES := $(shell find . -type f -name "*.go")
|
||||||
CLEAN_FILES := *~
|
CLEAN_FILES := *~
|
||||||
TAGS :=
|
TAGS :=
|
||||||
ARCHES := linux,386 linux,amd64 linux,arm linux,arm64 openbsd,amd64 windows,amd64 darwin,amd64
|
ARCHES := linux,386 linux,amd64 linux,arm linux,arm64 openbsd,amd64 windows,amd64 darwin,amd64
|
||||||
|
GO_VER := go1.14
|
||||||
|
|
||||||
default: build validation
|
default: build validation
|
||||||
|
|
||||||
|
@ -33,10 +34,10 @@ lint: .lint
|
||||||
CLEAN_FILES += .lint
|
CLEAN_FILES += .lint
|
||||||
|
|
||||||
.lint: $(SOURCE_FILES)
|
.lint: $(SOURCE_FILES)
|
||||||
if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then \
|
@if [[ "$(findstring $(GO_VER),$(shell go version))" != "" ]] ; then \
|
||||||
set -e ; for dir in $(NO_VENDOR_DIR) ; do golint -set_exit_status $$dir ; done && touch $@ \
|
set -e ; for dir in $(NO_VENDOR_DIR) ; do golint -set_exit_status $$dir ; done && touch $@ \
|
||||||
else \
|
else \
|
||||||
touch $@ ; \
|
touch $@ ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
.PHONY: vet
|
.PHONY: vet
|
||||||
|
@ -68,8 +69,10 @@ $(BUILD): $(SOURCE_FILES)
|
||||||
go build -o $(BUILD) $(BUILDPATH)
|
go build -o $(BUILD) $(BUILDPATH)
|
||||||
|
|
||||||
install.tools:
|
install.tools:
|
||||||
go get -u -v github.com/golang/dep/cmd/dep
|
@go get -u github.com/fatih/color ; \
|
||||||
if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then go get -u golang.org/x/lint/golint ; fi
|
if [[ "$(findstring $(GO_VER),$(shell go version))" != "" ]] ; then \
|
||||||
|
go get -u golang.org/x/lint/golint ;\
|
||||||
|
fi
|
||||||
|
|
||||||
./bin:
|
./bin:
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
Loading…
Reference in a new issue