2016-04-05 17:16:40 +00:00
|
|
|
language: go
|
|
|
|
go:
|
2017-01-27 14:30:21 +00:00
|
|
|
- tip
|
|
|
|
- 1.7
|
2016-04-05 17:16:40 +00:00
|
|
|
- 1.6
|
|
|
|
|
|
|
|
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-03-21 18:56:45 +00:00
|
|
|
- echo $TRAVIS_COMMIT_RANGE
|
2017-03-21 13:41:59 +00:00
|
|
|
- echo $TRAVIS_COMMIT
|
|
|
|
- echo $TRAVIS_BRANCH
|
|
|
|
- echo $TRAVIS_TAG
|
|
|
|
- echo $TRAVIS_BUILD_NUMBER
|
|
|
|
- echo $TRAVIS_REPO_SLUG
|
|
|
|
|
2016-04-05 17:16:40 +00:00
|
|
|
install: true
|
|
|
|
|
|
|
|
script:
|
|
|
|
- go vet -x ./...
|
|
|
|
- golint ./...
|
|
|
|
- go build .
|
2017-03-21 19:27:53 +00:00
|
|
|
- go test -v ./...
|
|
|
|
- ./git-validation -run DCO,short-subject,dangling-whitespace -v
|