mirror of
https://github.com/vbatts/git-validation.git
synced 2024-11-22 16:15:40 +00:00
29 lines
597 B
YAML
29 lines
597 B
YAML
language: go
|
|
go:
|
|
- tip
|
|
- 1.7
|
|
- 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 ./...
|
|
|
|
before_script:
|
|
- env
|
|
- echo $TRAVIS_COMMIT_RANGE
|
|
- echo $TRAVIS_COMMIT
|
|
- echo $TRAVIS_BRANCH
|
|
- echo $TRAVIS_TAG
|
|
- echo $TRAVIS_BUILD_NUMBER
|
|
- echo $TRAVIS_REPO_SLUG
|
|
|
|
install: true
|
|
|
|
script:
|
|
- go vet -x ./...
|
|
- golint -set_exit_status ./...
|
|
- go build .
|
|
- go test -v ./...
|
|
- ./git-validation -run DCO,short-subject,dangling-whitespace -v
|