packer-cn/vendor/github.com/gocolly/colly/.travis.yml

18 lines
489 B
YAML
Raw Normal View History

2019-06-06 10:40:39 -04:00
language: go
sudo: false
go:
- 1.9.x
- 1.10.x
- 1.11.x
- tip
script:
- go get -u golang.org/x/lint/golint
- OUT="$(go get -a)"; test -z "$OUT" || (echo "$OUT" && return 1)
- OUT="$(gofmt -l -d ./)"; test -z "$OUT" || (echo "$OUT" && return 1)
- OUT="$(golint ./...)"; test -z "$OUT" || (echo "$OUT" && return 1)
- go vet -v ./...
- go test -race -v -coverprofile=coverage.txt -covermode=atomic ./
- go build
after_success:
- bash <(curl -s https://codecov.io/bash)