1
0
Fork 0
mirror of https://github.com/vbatts/git-validation.git synced 2024-11-25 17:45:40 +00:00
git-validation/.travis.yml
Vincent Batts 099c80c66f
travis: version conditional golint
Since golint has changed url, and older go can't even install it, it
requires some silliness to install and only check when it's the newer
go1.11

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2018-10-31 14:14:07 -04:00

39 lines
669 B
YAML

language: go
go_import_path: github.com/vbatts/git-validation
go:
- "tip"
- "1.x"
- "1.11.x"
- "1.10.x"
- "1.9.x"
- "1.8.x"
- "1.7.x"
env:
matrix:
sudo: false
install: true
notifications:
email:
on_success: change
on_failure: always
before_script:
- env
before_install:
- go get ./...
- if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then go get -u golang.org/x/lint/golint ; fi
script:
- if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then golint -set_exit_status ./... ; fi
- go vet -x ./...
- go build .
- go test -v ./...
- ./git-validation -run DCO,short-subject,dangling-whitespace -v