Add travis yaml

This commit is contained in:
9seconds
2018-05-31 10:07:55 +03:00
parent 9c313b3d9b
commit 058f18ab83
2 changed files with 20 additions and 2 deletions
+18
View File
@@ -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
+2 -2
View File
@@ -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