build(travis): add travis.yml

This commit is contained in:
Nightapes
2019-05-14 19:36:31 +02:00
parent fe54370e7e
commit 637d8758ec

27
.travis.yml Normal file
View File

@@ -0,0 +1,27 @@
dist: xenial
language: go
go:
- 1.12.x
services:
- docker
notifications:
email: false
git:
depth: 1
before_script:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0
script:
- golangci-lint run
- go test -v ./...
- go build -o build/go-semantic-release ./cmd/go-semantic-release/
- GOOS=windows GOARCH=386 go build -o build/go-semantic-release.exe ./cmd/go-semantic-release/
branches:
except:
- /^v\d+\.\d+\.\d+$/