2020-08-10 17:43:49 +00:00
|
|
|
dist: bionic
|
2019-01-12 04:58:27 +00:00
|
|
|
language: go
|
|
|
|
|
|
|
|
go:
|
2020-08-10 17:43:49 +00:00
|
|
|
- "1.13.x"
|
2019-01-12 04:58:27 +00:00
|
|
|
|
2019-07-10 00:29:38 +00:00
|
|
|
install:
|
2020-08-10 17:43:49 +00:00
|
|
|
# Don't change local go.{mod, sum} by go get tools.
|
|
|
|
#
|
|
|
|
# ref: https://github.com/golang/go/issues/27643
|
|
|
|
- pushd ..; go get -u github.com/vbatts/git-validation; popd
|
|
|
|
- pushd ..; go get -u github.com/kunalkushwaha/ltag; popd
|
2019-07-10 00:29:38 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- pushd ..; git clone https://github.com/containerd/project; popd
|
|
|
|
|
|
|
|
script:
|
|
|
|
- DCO_VERBOSITY=-q ../project/script/validate/dco
|
|
|
|
- ../project/script/validate/fileheader ../project/
|
2020-08-10 17:43:49 +00:00
|
|
|
- go test -v -race -covermode=atomic -coverprofile=coverage.txt ./...
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|