mirror of
https://github.com/vbatts/git-validation.git
synced 2024-11-22 16:15:40 +00:00
commit
27e9409966
1 changed files with 24 additions and 10 deletions
34
.travis.yml
34
.travis.yml
|
@ -1,25 +1,39 @@
|
||||||
language: go
|
language: go
|
||||||
|
|
||||||
|
go_import_path: github.com/vbatts/git-validation
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- tip
|
- "tip"
|
||||||
- 1.x
|
- "1.x"
|
||||||
- 1.8.x
|
- "1.11.x"
|
||||||
- 1.7.x
|
- "1.10.x"
|
||||||
- 1.6.x
|
- "1.9.x"
|
||||||
|
- "1.8.x"
|
||||||
|
- "1.7.x"
|
||||||
|
|
||||||
|
env:
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
before_install:
|
install: true
|
||||||
- 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 ./...
|
notifications:
|
||||||
|
email:
|
||||||
|
on_success: change
|
||||||
|
on_failure: always
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- env
|
- env
|
||||||
|
|
||||||
install: true
|
before_install:
|
||||||
|
- go get ./...
|
||||||
|
- if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then go get -u golang.org/x/lint/golint ; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- if [[ "$(go version |awk '{ print $3 }')" =~ ^go1\.11\. ]] ; then golint -set_exit_status ./... ; fi
|
||||||
- go vet -x ./...
|
- go vet -x ./...
|
||||||
- golint -set_exit_status ./...
|
|
||||||
- go build .
|
- go build .
|
||||||
- go test -v ./...
|
- go test -v ./...
|
||||||
- ./git-validation -run DCO,short-subject,dangling-whitespace -v
|
- ./git-validation -run DCO,short-subject,dangling-whitespace -v
|
||||||
|
|
Loading…
Reference in a new issue