1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2024-11-22 08:25:38 +00:00

travis, golint, and versions of golang!

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2018-11-08 11:50:04 -05:00
parent 37d776ac40
commit acd3fa49ea
Signed by: vbatts
GPG key ID: 10937E57733F1362
2 changed files with 11 additions and 6 deletions

View file

@ -1,9 +1,10 @@
language: go language: go
go: go:
- 1.x - "1.x"
- 1.10.x - "1.11.x"
- 1.9.x - "1.10.x"
- 1.8.x - "1.9.x"
- "1.8.x"
sudo: false sudo: false

View file

@ -32,7 +32,11 @@ lint: .lint
CLEAN_FILES += .lint CLEAN_FILES += .lint
.lint: $(SOURCE_FILES) .lint: $(SOURCE_FILES)
set -e ; for dir in $$(glide novendor) ; do golint -set_exit_status $$dir ; done && touch $@ if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then \
set -e ; for dir in $$(glide novendor) ; do golint -set_exit_status $$dir ; done && touch $@ \
else \
touch $@ ; \
fi
.PHONY: vet .PHONY: vet
vet: .vet .vet.tags vet: .vet .vet.tags
@ -64,7 +68,7 @@ $(BUILD): $(SOURCE_FILES)
install.tools: install.tools:
go get -u -v github.com/Masterminds/glide go get -u -v github.com/Masterminds/glide
go get -u -v golang.org/x/lint/golint if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then go get -u golang.org/x/lint/golint ; fi
./bin: ./bin:
mkdir -p $@ mkdir -p $@