This commit is contained in:
decanus
2019-08-07 14:22:17 +02:00
parent 5f869f2eff
commit 588a767f37
2 changed files with 44 additions and 0 deletions

25
.travis.yml Normal file
View File

@@ -0,0 +1,25 @@
notifications:
email: false
language: go
install: true
env:
- GO111MODULE=on
before_script:
- make install-linter
matrix:
include:
- go: "1.11.x"
env: GOFLAGS=-mod=vendor
script:
- make lint
- make test
- go: "1.12.x"
env: GOFLAGS=-mod=vendor
script:
- make lint
- make test

View File

@@ -2,6 +2,25 @@ SHELL := /bin/bash
GO111MODULE = on
build:
go build
.PHONY: build
protobuf:
protoc --go_out=. ./protobuf/*.proto
.PHONY: protobuf
lint:
golangci-lint run -v
.PHONY: lint
install-linter:
# install linter
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.17.1
.PHONY: install-linter
vendor:
go mod tidy
go mod vendor
modvendor -copy="**/*.c **/*.h" -v
.PHONY: vendor