Add travis-ci file

This commit is contained in:
Nicholas Thompson
2019-03-14 23:18:55 +02:00
committed by ncthompson
parent 01ce2da533
commit acdaa019cb

25
.travis.yml Normal file
View File

@@ -0,0 +1,25 @@
sudo: false
language: go
env:
- GO111MODULE=on
go:
- 1.12.x
git:
depth: 1
install: true
notifications:
email: false
before_script:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.15.0
- go mod vendor
script:
- golangci-lint run
- go test -v -race ./...