mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-21 16:05:40 +00:00
travis, golint, and versions of golang!
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
37d776ac40
commit
acd3fa49ea
2 changed files with 11 additions and 6 deletions
|
@ -1,9 +1,10 @@
|
|||
language: go
|
||||
go:
|
||||
- 1.x
|
||||
- 1.10.x
|
||||
- 1.9.x
|
||||
- 1.8.x
|
||||
- "1.x"
|
||||
- "1.11.x"
|
||||
- "1.10.x"
|
||||
- "1.9.x"
|
||||
- "1.8.x"
|
||||
|
||||
sudo: false
|
||||
|
||||
|
|
8
Makefile
8
Makefile
|
@ -32,7 +32,11 @@ lint: .lint
|
|||
CLEAN_FILES += .lint
|
||||
|
||||
.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
|
||||
vet: .vet .vet.tags
|
||||
|
@ -64,7 +68,7 @@ $(BUILD): $(SOURCE_FILES)
|
|||
|
||||
install.tools:
|
||||
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:
|
||||
mkdir -p $@
|
||||
|
|
Loading…
Reference in a new issue