2016-04-05 17:16:40 +00:00
|
|
|
language: go
|
|
|
|
go:
|
2017-01-27 14:30:21 +00:00
|
|
|
- tip
|
2017-04-27 14:38:39 +00:00
|
|
|
- 1.x
|
|
|
|
- 1.8.x
|
|
|
|
- 1.7.x
|
|
|
|
- 1.6.x
|
2016-04-05 17:16:40 +00:00
|
|
|
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- go get -u github.com/golang/lint/golint
|
|
|
|
- mkdir -p $GOPATH/src/github.com/vbatts && ln -sf $(pwd) $GOPATH/src/github.com/vbatts/git-validation && go get ./...
|
|
|
|
|
2017-03-21 13:41:59 +00:00
|
|
|
before_script:
|
2017-04-27 17:17:56 +00:00
|
|
|
- env
|
2017-03-21 13:41:59 +00:00
|
|
|
|
2016-04-05 17:16:40 +00:00
|
|
|
install: true
|
|
|
|
|
|
|
|
script:
|
|
|
|
- go vet -x ./...
|
2017-04-27 17:20:21 +00:00
|
|
|
- golint -set_exit_status ./...
|
2016-04-05 17:16:40 +00:00
|
|
|
- go build .
|
2017-03-21 19:27:53 +00:00
|
|
|
- go test -v ./...
|
|
|
|
- ./git-validation -run DCO,short-subject,dangling-whitespace -v
|