Files
go-semantic-release/.travis.yml

35 lines
623 B
YAML
Raw Normal View History

2019-05-14 19:36:31 +02:00
dist: xenial
language: go
go:
- 1.12.x
2019-05-14 20:25:05 +02:00
cache:
directories:
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod
2019-05-14 19:36:31 +02:00
services:
- docker
notifications:
email: false
git:
depth: 1
2019-05-14 19:40:36 +02:00
env:
- GO111MODULE=on
2019-05-14 19:36:31 +02:00
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 ./...
2019-05-14 19:36:31 +02:00
- 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+$/