diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4a23bda --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +--- + +language: go +sudo: false +dist: trusty + +go: + - "1.9.x" + - "1.10.x" + - master + +script: + - make lint + - make test + +cache: + directories: + - vendor diff --git a/Makefile b/Makefile index 53ea512..871f9a0 100644 --- a/Makefile +++ b/Makefile @@ -50,11 +50,11 @@ crosscompile-dir: @rm -rf "$(CC_DIR)" && mkdir -p "$(CC_DIR)" .PHONY: test -test: vendor install-cli +test: vendor install-cli version.go @go test -v ./... .PHONY: lint -lint: vendor install-cli +lint: vendor install-cli version.go @$(GOMETALINTER) --deadline=2m ./... .PHONY: clean